AWS Certified Developer – Associate (DVA-C02) — Question 114
A company's new mobile app uses Amazon API Gateway. As the development team completes a new release of its APIs, a developer must safely and transparently roll out the API change.
What is the SIMPLEST solution for the developer to use for rolling out the new API version to a limited number of users through API Gateway?
Answer options
- A. Create a new API in API Gateway. Direct a portion of the traffic to the new API using an Amazon Route 53 weighted routing policy.
- B. Validate the new API version and promote it to production during the window of lowest expected utilization.
- C. Implement an Amazon CloudWatch alarm to trigger a rollback if the observed HTTP 500 status code rate exceeds a predetermined threshold.
- D. Use the canary release deployment option in API Gateway. Direct a percentage of the API traffic using the canarySettings setting.
Correct answer: D
Explanation
The canary release deployment option in API Gateway allows the developer to release the new API version to a small subset of users while monitoring its performance. Options A and B do not provide a controlled way to limit the rollout, and option C focuses on rollback rather than gradual deployment.