An organization is updating a microservice running on AWS Lambda. The team wants to use AWS CodeDeploy to perform a canary deployment. The requirement is to route 10% of the production traffic to the new Lambda function version, wait for 10 minutes, and then shift the remaining 90% of the traffic to the new version. Which of the following CodeDeploy configurations can achieve this setup? (Select TWO.)
- The predefined CodeDeploy configuration named CodeDeployDefault.LambdaCanary10Percent10MinutesAnswer
- A custom deployment configuration created using the AWS CLI or CloudFormation with a canary traffic-shifting type, a 10% step percentage, and a 10-minute intervalAnswer
- CThe predefined CodeDeploy configuration named CodeDeployDefault.LambdaLinear10PercentEvery10Minutes
- DThe predefined CodeDeploy configuration named CodeDeployDefault.ECSCanary10Percent10Minutes
- EThe predefined CodeDeploy configuration named CodeDeployDefault.LambdaAllAtOnce
Answer
The predefined CodeDeployDefault.LambdaCanary10Percent10Minutes configuration, and a custom deployment configuration configured with a canary traffic-shifting type, a 10% step percentage, and a 10-minute interval.
The scenario requires routing 10% of traffic, waiting 10 minutes, and then routing the remaining 90%. This can be achieved using the predefined configuration named CodeDeployDefault.LambdaCanary10Percent10Minutes, or by creating a custom CodeDeploy deployment configuration using AWS CLI or CloudFormation with a canary shifting type, a 10% step percentage, and a 10-minute interval.
Step-by-Step Solution
Key Concept
AWS CodeDeploy deployment configurations for AWS Lambda deployments, comparing canary and linear traffic shifting, as well as predefined versus custom configurations.