DOP-C02 Question 60
Single answerYour organization is deploying a new microservices-based application using Amazon ECS with Fargate. The application has multiple services that must be updated without downtime, as they are critical for business operations. You are tasked with designing a deployment strategy that ensures zero downtime during updates while minimizing the risk of introducing faulty changes. Which deployment strategy should you implement?
- A
Blue/Green deployment using AWS CodeDeploy with Amazon ECS
- B
Rolling deployment with a fixed percentage of tasks updated at a time
- C
All-at-once deployment across all ECS tasks
- D
Recreate deployment strategy, terminating all running tasks and starting new ones
Show answer and explanation
Correct answer: A
Explanation
Blue/Green deployment is the most suitable strategy for ensuring zero downtime and minimizing risk during updates in critical applications. It allows you to test the new version in a separate environment before routing traffic to it, and provides a straightforward rollback mechanism if issues arise. While other strategies may reduce downtime or ease deployment, they do not guarantee zero downtime or safe rollback capabilities like Blue/Green deployment.
- A. Correct.
Blue/Green deployment is ideal for zero-downtime updates as it creates a new environment (green) while keeping the current environment (blue) running, allowing for easy rollback in case of issues.
- B. Incorrect.
Rolling deployment updates tasks gradually but may lead to partial downtime or traffic being served by a mix of old and new versions, increasing the risk of inconsistent behavior.
- C. Incorrect.
All-at-once deployment replaces all tasks immediately, which can cause downtime and is not suitable for critical applications requiring zero downtime.
- D. Incorrect.
Recreate deployment strategy terminates all tasks before starting new ones, leading to significant downtime and higher risk during the update process.