DOP-C02 Question 57
Single answerYour company runs a production web application using AWS Fargate with Amazon ECS. The application is frequently updated with new features, and downtime must be avoided. You have been tasked with implementing a deployment strategy that ensures zero downtime while allowing you to gradually test the new version in production. Which deployment strategy is most suitable for this scenario?
- A
Rolling update
- B
Blue/Green deployment
- C
Recreate deployment
- D
Canary deployment
Show answer and explanation
Correct answer: B
Explanation
Blue/Green deployment is the most suitable deployment strategy for this scenario because it creates a separate environment for the new version of the application, allowing thorough testing before shifting all traffic. This ensures zero downtime and minimizes the risk of impacting production users. Other strategies like rolling updates or recreate deployments may introduce downtime or inconsistencies, which do not meet the high-availability requirement.
- A. Incorrect.
Rolling update involves updating the application in batches, but it may cause temporary downtime or inconsistencies during the update process, which is not suitable for this requirement.
- B. Correct.
Blue/Green deployment is the best choice in this scenario as it ensures zero downtime. A new version of the application is deployed to a separate environment, tested, and then traffic is switched to the new version gradually or all at once.
- C. Incorrect.
Recreate deployment stops the existing version of the application before deploying the new version, which results in downtime and does not meet the requirement of zero downtime.
- D. Incorrect.
Canary deployment gradually shifts a small portion of traffic to the new version and monitors its performance. While it ensures gradual testing, it does not create a completely separate environment like Blue/Green deployment, and may not ensure zero downtime in all cases.