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 of traffic to the new version while keeping on the existing version. They plan to monitor the new version for 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?
- A canary deployment configuration that shifts of traffic to the new version, waits for minutes, and then shifts the remaining of traffic.Answer
- BA linear deployment configuration that shifts traffic in equal increments every minute until of traffic is routed to the new version.
- CAn in-place rolling deployment that updates a batch of the existing EC2 instances at a time.
- DAn all-at-once deployment configuration that shifts of traffic to the new version immediately.
Answer
A canary deployment configuration that shifts of traffic to the new version, waits for minutes, and then shifts the remaining of traffic.
A canary deployment strategy matches the requirement by routing a small portion () of traffic to the new version, maintaining that level for a -minute observation period, and then routing the remaining of traffic. If alarms trigger, CodeDeploy can automatically and instantly route of the traffic back to the original version, which remains completely intact and unaffected during the test.
Step-by-Step Solution
Key Concept
Canary deployment strategy in AWS CodeDeploy
Estimated Time:1m 0s