Answer: C
Protic solvents (water, methanol, ethanol) form hydrogen bonds to the azide anion and lower its energy and reactivity. DMF is polar aprotic, dissolves the salt by solvating NaX+ but leaves NX3X− poorly solvated, so the rate is highest in DMF.