Amniocentesis is a procedure in which amniotic fluid is collected from the amniotic cavity for testing or treatment. Amniotic fluid is the fluid that surrounds and protects a baby during pregnancy. Amniotic fluid contains fetal cells and various proteins and provides valuable information about baby's health.