Deployment, Provisioning, and Automation

A CodeDeploy deployment must validate a new Lambda version before production traffic reaches it, then send it 10% of traffic for five minutes before shifting the remainder. Which configurations provide this behavior and automatic rollback when a monitored error alarm enters ALARM? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Use the CodeDeployDefault.LambdaCanary10Percent5Minutes deployment configuration.B. Configure a CloudWatch alarm and enable rollback when alarm thresholds are met.D. Configure a BeforeAllowTraffic hook to validate the new Lambda version.

AWhy this is right: This configuration shifts 10% of traffic first, waits five minutes, and then shifts the remaining traffic.

BWhy this is right: A monitored CloudWatch alarm can stop the deployment and trigger the configured automatic rollback.

CWhy not this: This configuration shifts another 10% each minute rather than shifting the remainder after five minutes.

DWhy this is right: BeforeAllowTraffic runs validation before production traffic is shifted to the new version.

EWhy not this: AfterAllowTraffic runs after traffic shifting and cannot satisfy validation before production traffic reaches the version.

The canary configuration provides the required traffic split, BeforeAllowTraffic validates before traffic shifts, and alarm-triggered rollback restores the previous version. Linear deployment shifts traffic repeatedly rather than holding at 10% before shifting the remainder.