SAP-C02 Question 624
Select 3A company is hosting a web application in a single Availability Zone using an Auto Scaling group for Amazon EC2 instances behind an Application Load Balancer (ALB). Due to increased demand, the application is experiencing intermittent downtime during deployments. The company wants to ensure zero-downtime deployments and high availability for the application. Which combination of actions should you take to meet these requirements?
- A
Update the Auto Scaling group to span multiple Availability Zones.
- B
Enable Elastic Load Balancer Cross-Zone Load Balancing on the Application Load Balancer.
- C
Implement AWS Elastic Beanstalk for the application and use its rolling deployment strategy.
- D
Configure Auto Scaling group lifecycle hooks to delay instance termination during deployments.
- E
Use an Application Load Balancer with weighted target groups and implement blue/green deployments.
Show answer and explanation
Correct answers: A, C, E
Explanation
To achieve high availability, the Auto Scaling group must span multiple Availability Zones. For zero-downtime deployments, AWS Elastic Beanstalk's rolling deployment strategy and blue/green deployments using weighted target groups with an ALB are effective choices. Combining these approaches ensures the application is resilient to failures and remains operational during updates.
- A. Correct.
Updating the Auto Scaling group to span multiple Availability Zones improves high availability and prevents downtime in case of an AZ failure.
- B. Incorrect.
Enabling cross-zone load balancing improves load distribution but does not address deployment downtime or ensure high availability.
- C. Correct.
AWS Elastic Beanstalk's rolling deployment strategy ensures zero-downtime deployments by deploying updates gradually while keeping the application operational.
- D. Incorrect.
Lifecycle hooks delay instance termination but do not directly address zero-downtime deployments or high availability.
- E. Correct.
Using weighted target groups with an Application Load Balancer enables blue/green deployments, ensuring zero-downtime during application updates.