The procedure is typically performed between the 15th and 20th weeks of pregnancy. Under ultrasound guidance, a thin needle is carefully inserted through the mother’s abdominal wall into the amniotic sac to withdraw a small sample of amniotic fluid. The procedure is generally safe, but as with any medical procedure, it carries certain risks.