Soru

Zorluk: OrtaDeployment Strategies

A developer is configuring a CI/CD pipeline for a microservice deployed on Amazon ECS. The company requires a deployment strategy that minimizes the blast radius by shifting traffic to the new version of the application in multiple stages (either in a single initial test phase followed by a complete cutover, or in periodic increments). The deployment must also support automatic rollbacks if any CloudWatch alarms are triggered. Which two AWS CodeDeploy predefined deployment configurations can the developer use to meet these requirements?

  1. CodeDeployDefault.ECSCanary10Percent5MinutesCevap
  2. CodeDeployDefault.ECSLinear10PercentEvery1MinutesCevap
  3. C
    CodeDeployDefault.ECSAllAtOnce
  4. D
    CodeDeployDefault.LambdaLinear10PercentEvery1Minute
  5. E
    CodeDeployDefault.ECSRollingUpdate

Cevap

CodeDeployDefault.ECSCanary10Percent5Minutes and CodeDeployDefault.ECSLinear10PercentEvery1Minutes
The configurations CodeDeployDefault.ECSCanary10Percent5Minutes and CodeDeployDefault.ECSLinear10PercentEvery1Minutes are correct because they are predefined deployment configurations for Amazon ECS. The Canary configuration routes 10% of traffic to the green task set and waits 5 minutes before routing the rest, while the Linear configuration shifts traffic in equal increments of 10% every minute. Both meet the requirement of gradual traffic shifting and support automatic rollback via CloudWatch alarms.

Adım Adım Çözüm

1
Filter deployment configurations by targeted service.
Identify that the target service is Amazon ECS, which eliminates Lambda-specific configurations.
AWS CodeDeploy separates predefined configurations for ECS, Lambda, and EC2/On-Premises; attempting to cross-assign them results in errors.
2
Evaluate the traffic routing requirement.
Identify configurations that support gradual traffic shifting (Canary or Linear) rather than an immediate cutover.
The requirement asks for shifting traffic in multiple stages or periodic increments to minimize blast radius.
3
Select matching predefined configurations.
Choose the configurations matching ECS canary and linear strategies.
Both configurations allow testing with a subset of traffic before full cutover and support automatic rollback via CloudWatch alarms.

Anahtar Kavram

AWS CodeDeploy deployment configurations for Amazon ECS support Canary and Linear traffic shifting to control blast radius and facilitate automatic rollbacks.
Tahmini Süre:1m 30s
Bu soruyu puanla