DVA-C02 Question 313
Single answerYou are deploying a new version of your application on Amazon ECS using an Application Load Balancer. The application is critical and must maintain availability during deployment. You also want to verify the new version works as expected with a small portion of traffic before fully rolling it out. Which deployment strategy should you choose?
- A
Blue/Green Deployment
- B
Rolling Deployment
- C
Canary Deployment
- D
All-at-once Deployment
Show answer and explanation
Correct answer: C
Explanation
Canary Deployment is the best choice when you need to maintain availability and test the new version with a small portion of traffic before fully rolling it out. This strategy minimizes risks while ensuring the new version works as expected before scaling up.
- A. Incorrect.
Blue/Green Deployment involves deploying the new version to a completely separate environment (blue and green) and switching traffic between them. While it ensures zero downtime, it does not gradually route a small portion of traffic to the new version for testing.
- B. Incorrect.
Rolling Deployment gradually replaces instances of the old version with the new version, maintaining availability. However, it does not allow for explicit testing of the new version with a small, controlled portion of traffic.
- C. Correct.
Canary Deployment routes a small, controlled percentage of traffic to the new version initially, allowing you to verify its behavior before gradually increasing the traffic. This fits the requirement of testing the new version with minimal risk.
- D. Incorrect.
All-at-once Deployment replaces all instances of the application with the new version at the same time. This does not meet the requirement of gradual testing or maintaining availability.