A developer is configuring an AWS CodeDeploy deployment group for a critical serverless application. To minimize the blast radius of potential failures, the developer needs a strategy that shifts traffic to the new AWS Lambda function version gradually over time. If any CloudWatch alarms are triggered during the deployment, CodeDeploy must immediately roll back all traffic to the original version.
Which of the following CodeDeploy deployment configuration types will satisfy these requirements? (Select TWO.)
- Canary configurationsAnswer
- Linear configurationsAnswer
- CAll-at-once configurations
- DIn-place rolling configurations
- EImmutable configurations
Answer
The correct configurations are Canary configurations and Linear configurations.
Canary and Linear configurations are the two native AWS CodeDeploy deployment configuration types that support gradual traffic shifting for serverless applications. Canary configurations route a portion of traffic to the new version, wait for a specified period, and then route the rest. Linear configurations shift traffic in equal increments at regular intervals. If a CloudWatch alarm triggers during either deployment, CodeDeploy immediately routes 100% of the traffic back to the original version by updating the Lambda alias.
Step-by-Step Solution
Key Concept
AWS CodeDeploy Traffic Shifting Configurations for AWS Lambda