Operational Excellence and Automation

A team deploys a Lambda function through AWS CodeDeploy and must expose 10% of requests to the new version for 10 minutes before full promotion. Elevated errors must automatically return traffic to the previous version. Which configuration meets these requirements?

Show the answer

Correct answerB. Canary traffic shifting with a CloudWatch alarm and alarm-triggered rollback

AWhy not this: All-at-once shifting exposes all requests immediately instead of limiting initial exposure to 10%.

BWhy this is right: A 10%-for-10-minutes canary plus alarm-triggered rollback provides the required exposure and automatic recovery.

CWhy not this: Manual approval before deployment does not automatically reverse traffic when runtime errors increase.

DWhy not this: Linear shifting repeatedly increases traffic and does not provide the required single 10% observation period.

A canary configuration can send 10% of traffic to the new version for 10 minutes, while a CloudWatch alarm triggers automatic rollback. Linear shifting increases traffic repeatedly rather than holding a single initial percentage.