Amniocentesis is a test on the fetus carried out during pregnancy to check for and to detect chromosomal abnormalities and other defects or disorders in the fetus. It can also be used for sex determination. It is carried out by testing a sample of the amniotic fluid from the uterus of pregnant women.