DVA-C02 Question 315
Single answerYou are working on deploying a new version of your application hosted on an Amazon ECS cluster. The application is critical, and you need to minimize downtime while ensuring that users experience the new version gradually. Which deployment strategy should you choose in this scenario?
- 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 for scenarios where you want to minimize downtime and gradually introduce a new version of an application to users. It allows for controlled traffic shifting to the new version, enabling testing and monitoring before full rollout. Other strategies like Blue/Green and Rolling do not inherently provide gradual exposure to users, and All-at-once deployment can lead to significant downtime.
- A. Incorrect.
Blue/Green deployment involves creating a separate environment (blue and green) and switching traffic between them, which does not align with the need to gradually roll out the changes to users.
- B. Incorrect.
Rolling deployment updates a subset of the application instances at a time until all instances are updated, but it does not inherently allow for gradual user exposure to the new version.
- C. Correct.
Canary deployment gradually shifts a small percentage of traffic to the new version, monitoring its performance before increasing the traffic, which minimizes downtime and aligns with the requirements of the scenario.
- D. Incorrect.
All-at-once deployment updates all instances at the same time, leading to potential downtime and no gradual exposure to the new version, making it unsuitable for this scenario.