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

A developer is building a serverless application by using AWS Serverless Application Model (AWS SAM) on multiple AWS Lambda functions. When the application is deployed, the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version.

Which change to the AWS SAM template will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer, A, is appropriate because it specifies the use of a canary deployment strategy that directs 10% of traffic for a specified duration, which aligns with the requirement. Options B and D use linear deployment strategies, which do not fulfill the requirement of shifting traffic in the specified manner. Option C is incorrect as it lacks the AutoPublishAlias setting necessary for traffic redirection.