Skip to content
Sharp

HTTP JSON APIs · interview question

Why should an API version change when a field is renamed or removed?

Multiple choiceHardchapter-11-curatedpremiumhttp-json-apisapi-versioning
Choose one answer
Answer and explanation

Correct answer

B. Because that is a breaking contract change for existing clients

Why

Adding fields is often backward compatible, but renaming or removing fields can break client deserialization immediately. Versioning gives clients time to migrate without silent runtime failures.

Test yourself on HTTP JSON APIs

A free test with instant, explained results. No account needed.

Start free test
All HTTP JSON APIs questions →