AWS Certified Developer – Associate (DVA-C02) — Question 11
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
Option A is the correct choice as it allows for the creation of a separate development stage without impacting the existing production environment, providing beta access with minimal changes. Option B requires creating an entirely new API, which adds unnecessary complexity and operational overhead. Option C suggests modifying the application code, which could lead to confusion and management challenges. Option D involves creating new endpoints that might disrupt the existing API structure and require more maintenance.