AWS Certified DevOps Engineer – Professional — Question 24
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
The correct answer is B because configuring the Auto Scaling group to send notifications to an Amazon SNS topic directly addresses the requirement to alert the Support team upon a failed instance launch. Option A does not directly notify about launch failures, C is related to API calls rather than instance launches, and D focuses on status checks rather than the launch process.