SAP-C02 Question 149
Single answerYour company is planning to deploy a highly available and scalable web application on AWS. The application requires zero downtime during deployments, the ability to roll back quickly in case of issues, and cost-effectiveness in managing resources. Which deployment strategy should you choose to meet these business requirements?
- A
Blue/Green Deployment using AWS Elastic Beanstalk
- B
Rolling Deployment using an Auto Scaling Group
- C
All-at-Once Deployment using AWS CodeDeploy
- D
Canary Deployment using AWS App Runner
Show answer and explanation
Correct answer: A
Explanation
The Blue/Green Deployment strategy using AWS Elastic Beanstalk is the most suitable option to meet the business requirements. It ensures zero downtime by maintaining two separate environments (blue and green) and allows seamless traffic switching between them. This also simplifies rollback in case of issues, making it both reliable and cost-effective.
- A. Correct.
Blue/Green Deployment using AWS Elastic Beanstalk ensures zero downtime by routing traffic between two separate environments (blue and green). It also allows quick rollbacks by switching traffic back to the previous environment. This aligns well with the business requirements.
- B. Incorrect.
Rolling Deployment using an Auto Scaling Group updates instances in batches, but this may cause brief periods of reduced capacity or issues during the update. It does not guarantee zero downtime, which disqualifies it for this scenario.
- C. Incorrect.
All-at-Once Deployment upgrades all instances at once, which can lead to downtime and makes rolling back more difficult. This deployment strategy is not aligned with the business requirements.
- D. Incorrect.
Canary Deployment using AWS App Runner is useful for testing small changes in production, but it doesn’t inherently ensure zero downtime for the entire application or offer a straightforward rollback mechanism.