All jobs / Solutions / cloud architect / Application Architecture
Solutions / cloud architect interview question · 1–3 years
How do you version a public API so you can change it without breaking customers?
The strongest answer
Make additive changes without a version bump, put breaking changes behind a new major version, run old and new in parallel with a published sunset date, and measure who still calls the old one
Why it works
Exactly. Additive quietly, breaking under a version, parallel run, measured deprecation.
What a good answer covers
- Additive changes need no version.
- Breaking changes get a new major.
- Run both; publish the sunset date.
- Measure remaining callers before removal.
Answers that fall short
- Close, but not the strongest: Put a version in every URL and bump it on every change
Bumping for every change turns versions into noise and customers stop reading them. - Weak: Never change the API once published
An API that cannot change is an API that gets abandoned. - Red flag: Change it and give customers a week’s notice
A week is not a migration window for anyone with a release process.
Who gets asked this
More Application Architecture questions
- Two services both need customer data. Who owns it, and how does the other get it?
- How do you keep a monolith modular enough that you could split it into services later?
- Booking a trip touches flights, hotel and payment services. How do you keep them consistent?
- How do you replace a large legacy system without a big-bang cut-over?
- When does separating read and write models earn its complexity, and when does it not?
- A team proposes event sourcing for the whole platform. What do you check before agreeing?
- How do you decide where one service ends and another begins?
- Six services share one database and every schema change needs six approvals. What do you propose?