For amniocentesis, the doctor inserts a needle into the uterus through the abdomen. It is a safe procedure. However, there are some risks.