A developer is updating a critical serverless application and needs to configure traffic shifting for a new version of an AWS Lambda function using AWS CodeDeploy. The deployment must meet the following requirements:
* Route exactly of traffic to the new version in the first increment.
* Allow at least minutes of monitoring for errors before shifting any additional traffic or completing the deployment.
Which two AWS CodeDeploy deployment configurations should the developer select to meet these requirements?
- ACodeDeployDefault.LambdaCanary10Percent5Minutes
- CodeDeployDefault.LambdaCanary10Percent10MinutesAnswer
- CCodeDeployDefault.LambdaLinear10PercentEvery1Minute
- CodeDeployDefault.LambdaLinear10PercentEvery10MinutesAnswer
- ECodeDeployDefault.LambdaAllAtOnce
Answer
The correct configurations are CodeDeployDefault.LambdaCanary10Percent10Minutes and CodeDeployDefault.LambdaLinear10PercentEvery10Minutes.
The configurations CodeDeployDefault.LambdaCanary10Percent10Minutes and CodeDeployDefault.LambdaLinear10PercentEvery10Minutes both satisfy the requirements. The canary configuration shifts of the traffic to the new version initially and waits minutes before shifting the remaining . The linear configuration shifts initially and waits minutes before shifting the next increment, which allows the required minutes of monitoring in both cases.
Step-by-Step Solution
Key Concept
AWS CodeDeploy deployment configurations for AWS Lambda functions specify how traffic is shifted between the original and new versions. Canary configurations shift a specified percentage in one increment and then shift the rest after a delay. Linear configurations shift traffic in equal increments at regular intervals.
Estimated Time:1m 30s