SAP-C02 Question 374
Select 2An organization operates a mission-critical application on AWS. They want to ensure that if a critical EC2 instance becomes unhealthy, it is automatically replaced, and the team is notified immediately. What combination of strategies would meet these requirements?
- A
Use EC2 Auto Scaling with health checks and enable automatic instance replacement.
- B
Set up an Amazon CloudWatch alarm to monitor EC2 instance health and configure an SNS topic to send notifications.
- C
Deploy AWS Lambda to restart the instance when a health check fails.
- D
Enable AWS Config rules to remediate unhealthy EC2 instances automatically.
- E
Use EC2 Recovery to replace unhealthy instances and configure CloudTrail logs for notifications.
Show answer and explanation
Correct answers: A, B
Explanation
To meet the organization's requirements, EC2 Auto Scaling ensures that unhealthy instances are automatically replaced, while CloudWatch alarms and SNS work together to notify the team immediately. This combination provides automatic remediation and alerting, ensuring application availability and quick response to issues.
- A. Correct.
Correct: EC2 Auto Scaling can monitor health checks and replace unhealthy instances automatically, ensuring high availability.
- B. Correct.
Correct: CloudWatch alarms can monitor EC2 instance health and trigger notifications via an SNS topic to alert the team immediately.
- C. Incorrect.
Incorrect: AWS Lambda could be used for custom remediation, but restarting an instance does not guarantee recovery. Auto Scaling is a more robust solution for this use case.
- D. Incorrect.
Incorrect: AWS Config rules are useful for compliance and monitoring, but they are not designed to replace unhealthy EC2 instances automatically.
- E. Incorrect.
Incorrect: EC2 Recovery is used to recover instances from specific failures, such as hardware issues, but it does not replace instances. CloudTrail logs are for auditing and do not provide real-time notifications.