DOP-C02 Question 59
Single answerYour company is deploying a web application that consists of containerized microservices running on Amazon ECS with the Fargate launch type. You need to implement a deployment strategy that minimizes downtime while ensuring that the new version of the service is tested before completely replacing the old version. Which deployment strategy should you implement?
- A
Blue/Green deployment using AWS CodeDeploy
- B
Rolling update using ECS service configuration
- C
Canary deployment using AWS Lambda
- D
Recreate deployment using ECS service configuration
Show answer and explanation
Correct answer: A
Explanation
Blue/Green deployment is ideal for scenarios where downtime must be minimized, and the new version of the service needs to be tested before a complete rollout. AWS CodeDeploy supports Blue/Green deployments for ECS services, making it the best choice in this case.
- A. Correct.
Blue/Green deployment using AWS CodeDeploy is the correct option because it allows you to shift traffic between the old and new versions of the service, ensuring zero downtime and the ability to test the new version before full deployment.
- B. Incorrect.
Rolling update using ECS service configuration gradually replaces old tasks with new tasks. While it minimizes downtime, it does not allow for testing the new version before completely replacing the old version.
- C. Incorrect.
Canary deployment using AWS Lambda is not applicable for ECS services as it is designed for serverless environments like AWS Lambda, not containerized workloads.
- D. Incorrect.
Recreate deployment using ECS service configuration stops all old tasks before starting new ones, leading to downtime and no testing period for the new version.