Step 1: Dilatation and curettage involves opening the cervix and instrumenting the uterine cavity, which can push infection upward through the genital tract.
Step 2: In active pelvic inflammatory disease this instrumentation can spread infection and worsen the condition, so D&C is contraindicated until the infection is controlled.
Step 3: Hence option A is correct. Endometriosis and ectopic pregnancy are not absolute contraindications to D&C in the way active pelvic infection is, and indeed procedures on the upper genital tract are themselves a risk factor for PID.