Q16 — AWS DVA-C02 Ch.3

Question 16 of 100 | ← Chapter 3

A company deploys an application using AWS CloudFormation. The application integrates an Amazon API Gateway REST API with AWS Lambda functions and uses Amazon DynamoDB for data persistence. It has three environments: development, test, and production—each with its own DynamoDB table. Unexpected issues occurred when pushing changes to production, although changes succeeded in development and test. A developer needs to route 20% of traffic to a new production-stage API with the updated version, while routing the remaining 80% to the existing production-stage API. The solution must minimize the number of errors any single customer experiences. What action should the developer take to meet these requirements?

Correct Answer: D. Configure canary settings for the production-stage API. Set the percentage of traffic directed to the canary deployment to 20%. Apply the planned changes to the production stage and deploy.

Explanation

API Gateway supports native canary deployments, allowing precise, low-risk traffic shifting (e.g., 20% to the new version) with automatic rollback and monitoring. This minimizes impact on individual customers and eliminates external dependencies like Route 53 or ALB. Option D is the most direct, integrated, and operationally efficient approach. Options B and C introduce unnecessary infrastructure and complexity; option A is not a valid deployment strategy.