DVA-C02 Question 245
Single answerA developer wants to deploy an application to an Amazon ECS cluster with zero downtime. Which AWS service feature can be used to achieve this?
- A
AWS CodePipeline with a blue/green deployment strategy
- B
Elastic Load Balancing with a weighted target group routing configuration
- C
Amazon ECS rolling updates
- D
AWS CodeDeploy with an in-place deployment strategy
Show answer and explanation
Correct answer: A
Explanation
AWS CodePipeline with a blue/green deployment strategy is ideal for zero-downtime deployments. It creates a new environment for the updated application version and validates it before switching traffic, ensuring seamless updates without service interruption. Other options either do not guarantee zero downtime or are less suited for a complete deployment strategy.
- A. Correct.
This option is correct. AWS CodePipeline can be configured with a blue/green deployment strategy, which ensures zero downtime by creating a new environment for the updated application version and switching traffic to it once validated.
- B. Incorrect.
While Elastic Load Balancing with weighted target group routing can help with traffic distribution, it is more suited for gradual traffic shifting rather than a full deployment strategy like blue/green deployments.
- C. Incorrect.
Amazon ECS rolling updates do not guarantee zero downtime as they may involve replacing tasks in the service sequentially, which can lead to brief interruptions.
- D. Incorrect.
AWS CodeDeploy's in-place deployment strategy updates instances in place, which can lead to downtime during the deployment process.