Answer: A
The diazonium ion is a weak electrophile and attacks the strongly activated para position of N,N-dimethylaniline (mildly acidic medium), giving the yellow azo dye. Ortho attack is minor because of sterics. The nitroso compounds arise from nitrous acid, not from a diazonium salt.