AWS Certified Developer – Associate — Question 97
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 correct answer is D because the canary release deployment option in API Gateway allows for a controlled rollout by directing a percentage of traffic to the new version, ensuring minimal impact on users. Option A suggests creating a new API, which is more complex than necessary for a version change. Option B lacks the transparency of user feedback during rollout, and option C, while useful for monitoring, does not address the rollout process itself.