Question

Difficulty: EasyDeployment Strategies

A developer is updating a serverless application where traffic is routed to an AWS Lambda function. The developer needs to update the function version using AWS CodeDeploy so that 10%10\% of the traffic is routed to the new version for a 1010-minute trial period, after which all remaining traffic is routed to the new version. Which AWS CodeDeploy deployment configuration meets this requirement?

  1. CodeDeployDefault.LambdaCanary10Percent10MinutesAnswer
  2. B
    CodeDeployDefault.LambdaLinear10PercentEvery10Minutes
  3. C
    CodeDeployDefault.LambdaAllAtOnce
  4. D
    CodeDeployDefault.LambdaLinear10PercentEvery1Minute

Answer

CodeDeployDefault.LambdaCanary10Percent10Minutes
The configuration CodeDeployDefault.LambdaCanary10Percent10Minutes shifts 10%10\% of the traffic to the new Lambda version immediately, waits for a 1010-minute interval to monitor for errors or alarms, and then shifts the remaining 90%90\% of the traffic to the new version.

Step-by-Step Solution

1
Analyze the traffic routing requirements.
The requirements specify shifting a small portion (10%10\%) of traffic initially, holding it for a trial period (1010 minutes), and then shifting the remaining traffic (90%90\%) all at once.
This matches a canary deployment pattern rather than a linear or all-at-once deployment pattern.
2
Identify the correct AWS CodeDeploy deployment configuration prefix for AWS Lambda.
The configuration must start with the prefix 'CodeDeployDefault.Lambda'.
CodeDeploy uses specific prefixes depending on the compute platform (Lambda, ECS, or EC2/On-Premises).
3
Select the configuration that matches Canary 10%10\% with a 1010-minute interval.
CodeDeployDefault.LambdaCanary10Percent10Minutes fits this description exactly.
The 'Canary10Percent10Minutes' suffix routes 10%10\% of traffic to the new version and then routes the rest after 1010 minutes.

Key Concept

AWS CodeDeploy configurations for AWS Lambda support Canary deployments (shifting a percentage of traffic for a set time before shifting the rest) and Linear deployments (shifting equal increments of traffic at regular intervals).
Rate this question