Answer: B
Nitrite with acetic acid gives HNOX2, which diazotises the primary aromatic amine of sulphanilic acid to a diazonium salt. This diazonium ion then couples with 1-naphthylamine to give the red azo dye, so the azo dye is the final product, not the intermediate.