AWS Certified Developer – Associate (DVA-C02) — Question 246

A company uses AWS CloudFormation to deploy an application that uses an Amazon API Gateway REST API with AWS Lambda function integration. The application uses Amazon DynamoDB for data persistence. The application has three stages: development, testing, and production. Each stage uses its own DynamoDB table.

The company has encountered unexpected issues when promoting changes to the production stage. The changes were successful in the development and testing stages. A developer needs to route 20% of the traffic to the new production stage API with the next production release. The developer needs to route the remaining 80% of the traffic to the existing production stage. The solution must minimize the number of errors that any single customer experiences.

Which approach should the developer take to meet these requirements?

Answer options

Correct answer: D

Explanation

The correct answer is D because configuring canary settings allows the developer to gradually roll out the new production stage API to a small percentage of users, minimizing the impact of potential errors. Options A, B, and C involve either full updates or DNS changes, which do not provide the same level of controlled traffic management and error reduction as canary deployments.