A deploy succeeded but a downstream team says your API change broke them. How do you handle it?
BeginnerScenarioDeployments and releases
Answer
Situation read → You broke a contract. Restore service for them first, then fix the process that let it through.
What I'd do →
- Roll back or restore the old behaviour (flag, versioned endpoint) to unblock them.
- Get the exact failing request and response from their logs or yours.
- Identify what changed: removed field, changed type, new required parameter, changed status code.
- Reintroduce the change in a backward-compatible way, or version the API (
/v2). - Prevent: contract tests (Pact) or OpenAPI diff checks in CI that fail on breaking changes.
oasdiff breaking old-openapi.yaml new-openapi.yaml --fail-on ERR
Why → Consumers shouldn't discover your breaking changes in production; CI should.
Interview tip → Mention contract testing or OpenAPI diffing as the prevention.
More on Deployments and releases
A deploy went out and p99 latency doubled. Walk me through it.IntermediateYou deployed a new version and half the pods are in CrashLoopBackOff. What do you do?BeginnerA release passed every test in staging but broke in production. How do you investigate?IntermediateHow would you design a zero-downtime deployment for a stateless API on Kubernetes?BeginnerEvery deploy causes a short spike of 502 errors from the ALB. Why, and how do you fix it?IntermediateHow would you set up a canary release, and what decides whether it gets promoted?Intermediate