AWS Certified Developer – Associate — Question 239
A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication.
The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers.
Which solution will meet these requirements with the LEAST operational overhead?
Answer options
- A. Define a development stage on the API Gateway API. Instruct the other developers to point the endpoints to the development stage.
- B. Define a new API Gateway API that points to the new API application code. Instruct the other developers to point the endpoints to the new API.
- C. Implement a query parameter in the API application code that determines which code version to call.
- D. Specify new API Gateway endpoints for the API endpoints that the developer wants to add.
Correct answer: A
Explanation
The correct answer is A because defining a development stage on the existing API allows the other developers to test the new version without impacting the current production API that customers are using. Options B and D require creating new APIs or endpoints, which increases operational overhead, while option C introduces unnecessary complexity by modifying the application code to handle versioning.