Amniocentesis is needed to perform fetal karyotyping, amniotic fluid culturing, testing for CMV infections, assessment of α-fetoprotein (AFP) levels, testing for thalassemia, and determination of the lecithin-sphingomyelin (L / S) ratio.