Amniocentesis (note the correct spelling) is a prenatal test where a small amount of amniotic fluid is extracted from the amniotic sac. While it can determine fetal sex, its primary purpose is detecting chromosomal abnormalities and genetic disorders like Down syndrome. Sex determination for selective abortion is illegal in India.