Ask the child to cough deeply.
Ask the child to clear their throat.
Use wall suction to obtain the sample from the child's throat.
Use a bulb syringe to obtain sputum from the child's mouth.