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.
More on 5+ years: senior and lead-level deep-dives
Walk me through the platform architecture you designed, and the key decisions behind it.AdvancedHow did you decide between multi-region active-active and active-passive?AdvancedHow did you measure the success of your platform team?AdvancedHow did you handle a migration across many teams with minimal disruption?AdvancedHow did your Terraform setup scale across many teams and accounts?AdvancedWhat would you change about your current company's infrastructure if you had full authority?Advanced