An amniocentesis is a medical procedure that samples fluid around the baby in the uterus using a needle inserted through the abdomen. It is primarily performed to test for conditions like Down syndrome. The procedure is guided by ultrasound, and typically 15-30ml of fluid is collected. There is a small risk of miscarriage, estimated at less than 0.5%.