Interview Prep/Real-World Interview/5+ years: senior and lead-level deep-dives

How many environments did you have, and how did you decide that number?

AdvancedBehavioral5+ years: senior and lead-level deep-dives
Answer

Good answer looks like → "Three long-lived (dev, staging, prod) plus ephemeral per-PR environments. We removed a fourth 'QA' environment because it drifted, was always occupied, and its tests could run in ephemeral environments instead. Every long-lived environment costs money and maintenance, so I ask what risk each one catches that another doesn't."

Follow-ups to expect → How do you test infrastructure changes safely? What about integration with third parties in ephemeral environments?

Red flags → "More environments means more safety" without considering drift and cost.

All Real-World Interview questions Roadmap: Interview readiness

More on 5+ years: senior and lead-level deep-dives