Interview Prep/Real-World Interview/Deployments and releases

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 →

  1. Roll back or restore the old behaviour (flag, versioned endpoint) to unblock them.
  2. Get the exact failing request and response from their logs or yours.
  3. Identify what changed: removed field, changed type, new required parameter, changed status code.
  4. Reintroduce the change in a backward-compatible way, or version the API (/v2).
  5. 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.

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases