Question

Difficulty: MediumDeployment Strategy Design

A gaming company is deploying an updated matchmaking microservice package using AWS Lambda. The microservice receives high volume traffic via Amazon API Gateway. To minimize the blast radius of any potential deployment failures, the DevOps team requires a deployment strategy that routes exactly 10%10\% of incoming production traffic to the new Lambda version for a validation period of 1515 minutes. If no latency or error alarms are triggered during this period, all remaining traffic must immediately shift to the new version. The team wants the entire deployment to complete in the shortest time possible once the validation window is successfully passed. Which AWS CodeDeploy deployment configuration should the solutions architect specify to meet these requirements?

  1. A
    CodeDeployDefault.LambdaLinear10PercentEvery10Minutes
  2. CodeDeployDefault.LambdaCanary10Percent15MinutesAnswer
  3. C
    CodeDeployDefault.LambdaAllAtOnce
  4. D
    CodeDeployDefault.LambdaCanary10Percent5Minutes

Answer

CodeDeployDefault.LambdaCanary10Percent15Minutes
The correct configuration is the canary deployment that routes 10%10\% of traffic initially, holds it for 1515 minutes to monitor CloudWatch alarms, and then shifts all remaining traffic (90%90\%) to the new version. This satisfies both the validation duration and the requirement to complete the deployment in the shortest time after validation.

Step-by-Step Solution

1
Analyze the traffic shifting pattern requirement.
The requirements ask for an initial 10%10\% shift, followed by a 1515-minute validation period, and then a final shift of all remaining traffic (100%100\% total) in a single step. This defines a canary deployment pattern (two-step shifting), not a linear deployment pattern (multi-step gradual shifting).
Identifying the deployment pattern eliminates linear configurations which continue to shift traffic in small increments over a long duration.
2
Evaluate the validation duration requirement against default AWS configurations.
The validation period is specified as 1515 minutes. The appropriate canary configuration must hold the initial 10%10\% traffic routing for exactly 1515 minutes.
This rules out shorter configurations such as the 55-minute canary option.
3
Select the matching AWS CodeDeploy predefined configuration.
The predefined configuration matching a 10%10\% initial shift and 1515-minute validation window is CodeDeployDefault.LambdaCanary10Percent15Minutes.
Using predefined configurations simplifies pipeline management and ensures AWS-native behavior without custom scripting.

Key Concept

AWS CodeDeploy deployment configurations for Lambda allow architects to choose between canary, linear, and all-at-once traffic-shifting patterns. A canary pattern shifts traffic in two increments (a specified percentage for a validation period, followed by the remainder), whereas a linear pattern shifts traffic in equal increments at regular intervals.
Estimated Time:1m 30s
Rate this question