Interview Prep/Real-World Interview/Deployments and releases

A deploy needs a config change in three places: Terraform, a Kubernetes ConfigMap and AWS SSM. How do you sequence it?

IntermediateScenarioDeployments and releases
Answer

Situation read → Multi-system changes fail in the gaps between systems. Order them so every intermediate state works.

What I'd do →

  1. Infrastructure first: terraform plan and apply for the new resource (a new queue or bucket) that the app will need. Existing code ignores it.
  2. Add the new parameter to SSM and the ConfigMap with defaults that keep current behaviour.
aws ssm put-parameter --name /prod/api/queue_url --type String --value "https://sqs..." --overwrite
  1. Deploy the app version that reads the new config.
  2. Flip the behaviour (flag or config value) once everything is in place.
  3. Clean up old config in a later change.
  4. Ideally collapse this into one pipeline: Terraform outputs feed Helm values, so nobody does it by hand.

Why → Each step is independently safe and reversible; no window where the app expects something that doesn't exist.

Interview tip → Say "additive first, switch later, clean up last".

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases