Amniocentesis is a procedure used to obtain a small sample of the amniotic fluid that surrounds the fetus during pregnancy.Amniotic fluid is a clear, pale yellow fluid made by the fetus. The fluid protects the fetus from injury and helps to regulate the temperature of the fetus.mniocentesis is a procedure used to obtain a small sample of the amniotic fluid that surrounds the fetus during pregnancy.