Question

Difficulty: MediumDeployment Strategy Design

A company is releasing a new version of an API microservice deployed on AWS Lambda. The deployment pipeline uses AWS CodeDeploy to manage traffic shifting. To minimize risk, the Solutions Architect wants to route 10%10\% of the traffic to the new Lambda version immediately, and then increase the traffic by another 10%10\% every 1010 minutes until the transition is complete. If the error rate exceeds a specified threshold, the deployment must roll back automatically. Which deployment configuration should the Solutions Architect configure in the CodeDeploy deployment group to achieve this transition?

  1. CodeDeployDefault.LambdaLinear10PercentEvery10MinutesAnswer
  2. B
    CodeDeployDefault.LambdaCanary10Percent10Minutes
  3. C
    CodeDeployDefault.LambdaLinear10PercentEvery1Minute
  4. D
    CodeDeployDefault.LambdaAllAtOnce

Answer

CodeDeployDefault.LambdaLinear10PercentEvery10Minutes
The configuration stating 'CodeDeployDefault.LambdaLinear10PercentEvery10Minutes' is correct because linear configurations shift traffic in equal increments at regular intervals. A 10%10\% linear shift every 1010 minutes matches the requirement to scale traffic by 10%10\% initially and then by another 10%10\% every 1010 minutes.

Step-by-Step Solution

1
Analyze the traffic shifting pattern requirement.
The requirement specifies shifting 10%10\% of traffic initially, followed by equal increments of 10%10\% at regular intervals of 1010 minutes (a linear progression).
This is a linear traffic shifting strategy, not a canary or all-at-once strategy.
2
Identify the standard AWS CodeDeploy deployment configurations for Lambda.
Linear configurations shift traffic in equal increments at regular intervals, whereas Canary configurations shift a portion first and the rest after a delay.
Choosing the correct configuration type ensures compliance with the transition rate and timing requirements.
3
Select the configuration matching the specific percentage and time interval.
The Linear configuration with 10%10\% shifting every 1010 minutes is represented by CodeDeployDefault.LambdaLinear10PercentEvery10Minutes.
This configuration executes a linear deployment over a 9090-minute period with 1010-minute intervals.

Key Concept

AWS CodeDeploy deployment configurations define the way traffic is shifted to new versions of Lambda functions or ECS tasks. Linear deployments shift traffic in equal increments over time, while canary deployments shift a small percentage first and then shift the remainder all at once.
Rate this question