AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 115
A company is running an application on Amazon EC2 instances in an Auto Scaling group. Recently, an issue occurred that prevented EC2 instances from launching successfully, and it took several hours for the support team to discover the issue. The support team wants to be notified by email whenever an EC2 instance does not start successfully.
Which action will accomplish this?
Answer options
- A. Add a health check to the Auto Scaling group to invoke an AWS Lambda function whenever an instance status is impaired.
- B. Configure the Auto Scaling group to send a notification to an Amazon SNS topic whenever a failed instance launch occurs.
- C. Create an Amazon CloudWatch alarm that invokes an AWS Lambda function when a failed AttachInstances Auto Scaling API call is made.
- D. Create a status check alarm on Amazon EC2 to send a notification to an Amazon SNS topic whenever a status check fail occurs.
Correct answer: B
Explanation
Option B is correct because configuring the Auto Scaling group to send notifications to an Amazon SNS topic upon a failed instance launch will directly alert the support team. The other options, while related to health checks and alarms, do not specifically address the need for immediate email notifications related to instance launch failures.