SOA-C02 Question 144
Single answerYour team is deploying a new version of a web application hosted on Amazon ECS and wants to minimize downtime while allowing some users to test the new version before rolling it out to all users. Which deployment strategy would be the most suitable for this scenario?
- A
Blue/Green deployment
- B
Rolling deployment
- C
Canary deployment
- D
Recreate deployment
Show answer and explanation
Correct answer: C
Explanation
Canary deployment is the best choice for scenarios where you want to minimize downtime and allow testing of the new version with a small subset of users before a full rollout. It provides an opportunity to validate the new version while maintaining service availability for most users. Other deployment strategies like Blue/Green or Rolling do not directly address the need for gradual exposure to a subset of users for testing purposes.
- A. Incorrect.
Blue/Green deployment involves creating two separate environments, one for the current version and one for the new version. While it minimizes downtime, it does not inherently allow gradual exposure to a subset of users for testing, which is a key requirement in this scenario.
- B. Incorrect.
Rolling deployment updates the application in batches, gradually replacing old instances with new ones. However, it does not provide the ability to test the new version with a subset of users before full rollout.
- C. Correct.
Canary deployment allows a small subset of users to access the new version of the application first, providing the opportunity to test the new version before gradually expanding it to all users. This fits the scenario requirement perfectly.
- D. Incorrect.
Recreate deployment involves shutting down all old instances and replacing them with new instances simultaneously. This results in downtime and does not support gradual exposure or testing of the new version.