DOP-C02 Question 118
Select 3Your organization is running a distributed web application across hundreds of EC2 instances in multiple AWS Regions. You are tasked with designing an automated solution to ensure that: 1) Instances that fail health checks are automatically replaced, 2) Configuration changes to the application are rolled out with minimal human intervention, and 3) Scale-out and scale-in operations are handled automatically based on traffic patterns. Which combination of services and features would best meet these requirements?
- A
Use Auto Scaling Groups with health check monitoring and dynamic scaling policies.
- B
Use AWS Elastic Beanstalk with a rolling deployment strategy.
- C
Use EC2 Spot Instances to automatically replace unhealthy instances.
- D
Use AWS Systems Manager State Manager to manage scaling policies for EC2 instances.
- E
Use AWS CodeDeploy with a blue/green deployment strategy for configuration changes.
Show answer and explanation
Correct answers: A, B, E
Explanation
The combination of Auto Scaling Groups, AWS Elastic Beanstalk with rolling deployments, and AWS CodeDeploy with a blue/green deployment strategy addresses all the requirements: automated instance replacement, seamless configuration changes, and automatic scaling based on traffic. These services provide the necessary automation and scalability to manage a large-scale distributed application efficiently.
- A. Correct.
Auto Scaling Groups provide automatic instance replacement for failed health checks and can dynamically scale instances based on traffic patterns, making it suitable for this scenario.
- B. Correct.
AWS Elastic Beanstalk simplifies application management, including rolling deployments, which minimize downtime during configuration changes.
- C. Incorrect.
While EC2 Spot Instances can be used to save costs, they are not designed to replace unhealthy instances. Spot Instances are terminated based on capacity availability, making this option unsuitable for maintaining application reliability.
- D. Incorrect.
AWS Systems Manager State Manager is designed for configuration compliance and state management, but it is not appropriate for handling scaling policies or automated instance replacement.
- E. Correct.
AWS CodeDeploy with a blue/green deployment strategy ensures seamless configuration updates by directing traffic between the old and new environments, reducing downtime and risk during deployments.