
Answer-first summary for fast verification
Answer: Use Canary10Percent10Minutes for Deployment Preference with AutoPublishAlias.
The correct answer is A. In the AWS Serverless Application Model (AWS SAM), using the Deployment Preference Type 'Canary10Percent10Minutes' allows 10% of traffic to be shifted to the new version for the first 10 minutes, ensuring a canary deployment. The AutoPublishAlias property correctly configures the Lambda function alias for this deployment type, making sure that if no issues arise, the remaining traffic will switch to the new version seamlessly after the initial period.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How should a developer modify the AWS SAM template for a serverless application to route 10% of traffic to a new deployment for an initial 10-minute period, and then shift all traffic to the new version if stable?
A
Use Canary10Percent10Minutes for Deployment Preference with AutoPublishAlias.
B
Use Linear10PercentEvery10Minutes for Deployment Preference with AutoPublishAlias.
C
Use Canary10Percent10Minutes for Deployment Preference with PreTraffic and PostTraffic.
D
Use Linear10PercentEvery10Minutes for Deployment Preference with PreTraffic and PostTraffic.