Soru

Zorluk: KolayDeployment Strategy Design

A development team is deploying a new version of an API to Amazon EC2 instances behind an Application Load Balancer. To minimize update risk, the team wants to route 10%10\% of traffic to the new version while keeping 90%90\% on the existing version. They plan to monitor the new version for 1010 minutes, and then immediately route all remaining traffic to the new version if no errors occur. If any alarms are triggered during the monitoring period, the deployment must roll back instantly without affecting the traffic on the existing version. Which deployment configuration best meets these requirements?

  1. A canary deployment configuration that shifts 10%10\% of traffic to the new version, waits for 1010 minutes, and then shifts the remaining 90%90\% of traffic.Cevap
  2. B
    A linear deployment configuration that shifts traffic in equal 10%10\% increments every minute until 100%100\% of traffic is routed to the new version.
  3. C
    An in-place rolling deployment that updates a batch of the existing EC2 instances at a time.
  4. D
    An all-at-once deployment configuration that shifts 100%100\% of traffic to the new version immediately.

Cevap

A canary deployment configuration that shifts 10%10\% of traffic to the new version, waits for 1010 minutes, and then shifts the remaining 90%90\% of traffic.
A canary deployment strategy matches the requirement by routing a small portion (10%10\%) of traffic to the new version, maintaining that level for a 1010-minute observation period, and then routing the remaining 90%90\% of traffic. If alarms trigger, CodeDeploy can automatically and instantly route 100%100\% of the traffic back to the original version, which remains completely intact and unaffected during the test.

Adım Adım Çözüm

1
Analyze the traffic splitting and routing requirements.
The requirements specify routing a small portion (10%10\%) of traffic to the new version, holding it there for a monitoring period of 1010 minutes, and then shifting the remaining 90%90\% at once.
This matches the definition of a canary deployment, which exposes a small subset of users to the new version to verify stability.
2
Evaluate the rollback and risk mitigation requirements.
The strategy must support instant rollback without affecting users on the old version if errors occur during the monitoring window.
Because the old version is still active and serving 90%90\% of traffic on separate resources (blue/green canary), traffic can be instantly re-routed back to the old version without needing to redeploy or rebuild packages.
3
Compare against linear, rolling, and all-at-once strategies.
Linear shifts traffic continuously in increments (not holding at 10%10\% then jumping to 100%100\%). Rolling updates instances in-place, which lacks clean isolation and instant rollback. All-at-once exposes all users immediately, maximizing risk.
Only the canary deployment configuration satisfies the exact two-step traffic routing and rollback criteria.

Anahtar Kavram

Canary deployment strategy in AWS CodeDeploy
Tahmini Süre:1m 0s
Bu soruyu puanla