Should we just give steroids and deliver or we need to confirm maturity of lung with Amniocentesis before delivery?

If a delivery is planned before 34 weeks. Should we just give steroids and deliver or we need to confirm maturity of lung with Amniocentesis before delivery?

Critical emergency, deliver, keep baby in NICU and give surfactant.

If its planned and everything going well, steroids and deliver

Give steroids and deliver as if delivery is being planned at 34 week , it must be a very high risk pregnancy