AWS Certified DevOps Engineer – Professional — Question 166

A software-as-a-service (SaaS) company is using AWS Elastic Beanstalk to deploy its primary .NET application. The Elastic Beanstalk environment is configured to use Amazon EC2 Auto Scaling and Elastic Load Balancing (ELB) for its underlying Amazon EC2 instances.

The company is experiencing incidents in which EC2 instances are marked unhealthy and are terminated by Auto Scaling groups after a failed ELB health check. The company's DevOps team must build a solution that will notify the operations team whenever an Auto Scaling group terminates EC2 instances for any existing client environments.

What should the DevOps team do to meet this requirement?

Answer options

Correct answer: C

Explanation

The correct answer is C because the requirement is to notify the operations team when EC2 instances are terminated, which is captured by the autoscaling:EC2_INSTANCE_TERMINATE notification type. Options A and B focus on the launch of instances, which does not address the need for notifications about terminations, while option D, although it uses the correct termination type, lacks the necessary notification framework provided by SNS for email alerts.