HTTP JSON APIs · interview question
Why might you choose to use an API gateway in conjunction with API versioning?
Multiple choiceMediumchapter-11-curatedpremiumhttp-json-apisapi-versioning
Answer and explanation
Correct answer
B. To enforce consistent versioning rules
Why
An API gateway can enforce consistent versioning rules across all API requests, providing a centralized place to manage versioning and reduce the complexity of handling multiple versions in individual services.
Test yourself on HTTP JSON APIs
A free test with instant, explained results. No account needed.
More HTTP JSON APIs questions
- Why might an API client crash if JSON response shapes are not treated as strict contracts?
- In the context of Java's HttpClient, which method allows you to perform an asynchronous HTTP request?
- How can you ensure that a Java application using HttpClient does not suffer from resource exhaustion during network…
- Why should an API version change when a field is renamed or removed?
- Which of the following is a challenge when using URL path versioning for APIs?
- What should the DTO-to-domain translation step usually do?