SAP-C02 Question 389
Single answerYour team is using AWS CodePipeline to automate deployments for a web application hosted on Amazon ECS. The application requires zero downtime during updates. Which deployment strategy should you select in AWS CodeDeploy to meet this requirement?
- A
Rolling deployment
- B
Blue/Green deployment
- C
All-at-once deployment
- D
Canary deployment
Show answer and explanation
Correct answer: B
Explanation
Blue/Green deployment is the most suitable strategy for achieving zero downtime. It ensures that the current environment (blue) remains operational while the new environment (green) is prepared. Traffic is only routed to the green environment once it is verified to be fully functional, eliminating downtime and minimizing risk.
- A. Incorrect.
Rolling deployment updates a subset of instances at a time, but it may cause partial downtime or impact users if there are issues during the update.
- B. Correct.
Blue/Green deployment creates a separate environment (green) for the new version and switches traffic from the old environment (blue) to the new one, ensuring zero downtime.
- C. Incorrect.
All-at-once deployment replaces all instances with the new version simultaneously, which can cause downtime during the update process.
- D. Incorrect.
Canary deployment deploys the new version to a small percentage of instances first and gradually increases the scope. However, during the initial phase, both versions may coexist, potentially causing partial downtime.