API Versioning, Deprecation and Backward Compatibility Questions

Evolving an API without breaking existing consumers: versioning schemes (URI, header, media type, semantic versioning), classifying breaking versus non-breaking changes including behavioural ones such as defaults and error text, deprecation and sunset policy and timelines (including accelerated retirement), running multiple versions concurrently, and planning consumer migrations at scale including SDK, partner, mobile and long-tail client impact. Also covers finding who still calls an old version, catching accidental breaks with contract checks in CI, expand-then-contract evolution of fields and stored data, gradual rollout with per-version monitoring, and compatibility between independently deployed services, streams and libraries. Covers compatibility guarantees across REST, GraphQL and gRPC consumers. Excludes general API surface design, payload and OpenAPI schema design, protobuf field-level mechanics, writing the notices themselves, rate limiting, gateways and database schema migration.

HardTechnical
76 practiced

You must move thousands of customers from API v1 to v2, and v2 breaks compatibility. Plan the migration: what do you build for clients, how do you communicate, how do you track adoption, what happens to customers who cannot move quickly, and what are your rollback and success criteria?

HardTechnical
70 practiced

A security vulnerability in your authentication scheme can only be fixed with a breaking change, and many third-party clients have ignored migration notices. Design the emergency migration: do you break, patch in place or keep the old behaviour for a while, who approves, and how do you keep the service available while enforcing the cutover?

HardSystem Design
71 practiced

You need to let consumers keep working while a new API contract rolls out. When would you use side-by-side adapters, a facade or proxy translation layer, or a compatibility shim service, and how would you route traffic to test the translation before relying on it?

HardTechnical
59 practiced

Two teams disagree on how to version a public API: one wants the version in the URL, the other wants it in a request header. Build a short evaluation rubric to settle it, say which you would choose for your situation, and explain how you would announce the decision and its migration timeline to external integrators.

EasyTechnical
66 practiced

You are shipping the first public version of an API that many third-party developers will integrate with. What are the ways a client could select or pin an API version, and what does each option cost you in caching, routing, discoverability and developer experience? Which would you pick and why?

Unlock Full Question Bank

Get access to all 6 API Versioning, Deprecation and Backward Compatibility interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.