Soru

Zorluk: KolayDeployment Strategy Design

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.)

  1. The predefined CodeDeploy configuration named CodeDeployDefault.LambdaCanary10Percent10MinutesCevap
  2. 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 intervalCevap
  3. C
    The predefined CodeDeploy configuration named CodeDeployDefault.LambdaLinear10PercentEvery10Minutes
  4. D
    The predefined CodeDeploy configuration named CodeDeployDefault.ECSCanary10Percent10Minutes
  5. E
    The predefined CodeDeploy configuration named CodeDeployDefault.LambdaAllAtOnce

Cevap

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.

Adım Adım Çözüm

1
Determine the required deployment pattern from the scenario details.
The scenario requires shifting 10% of traffic initially, waiting for a single 10-minute period, and then shifting the remaining 90% of traffic.
This identifies that a canary deployment strategy is needed rather than a linear or all-at-once strategy.
2
Check predefined CodeDeploy configurations for AWS Lambda that match this pattern.
CodeDeployDefault.LambdaCanary10Percent10Minutes is identified as matching the requirements exactly.
AWS CodeDeploy provides built-in configurations for common traffic-shifting patterns on Lambda.
3
Identify valid alternatives or custom deployment configurations for AWS Lambda.
A custom deployment configuration can be created using the AWS CLI or CloudFormation with the same canary shifting behavior.
AWS CodeDeploy supports defining custom configurations if specific parameters are required or if they need to be managed as custom resources.

Anahtar Kavram

AWS CodeDeploy deployment configurations for AWS Lambda deployments, comparing canary and linear traffic shifting, as well as predefined versus custom configurations.
Bu soruyu puanla