Amniocentesis is a medical procedure in which a small amount of amniotic fluid is extracted from the amnion around a developing fetus. The DNA traces in the fluid are then analysed, usually to rule out genetic abnormalities which could cause birth defects. (A side effect of the analysis is determining the sex of the fetus, although that is more commonly discovered through ultrasound.)