SOA-C02 · Question #190
A company is running an application on a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances are launched by an Auto Scaling group and are automatically…
The correct answer is A. Create an Amazon CloudWatch alarm on the UnHealthyHostCount metric. Configure an action. The Application Load Balancer (ALB) provides a CloudWatch metric called UnHealthyHostCount, which tracks the number of targets (EC2 instances) that fail health checks in the target group. By creating a CloudWatch alarm on this metric and setting a threshold greater than 0, the…
Question
A company is running an application on a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances are launched by an Auto Scaling group and are automatically registered in a target group. A SysOps administrator must set up a notification to alert application owners when targets fail health checks. What should the SysOps administrator do to meet these requirements?
Options
- ACreate an Amazon CloudWatch alarm on the UnHealthyHostCount metric. Configure an action
- BConfigure an Amazon EC2 Auto Scaling custom lifecycle action to send an Amazon Simple
- CUpdate the Auto Scaling group. Configure an activity notification to send an Amazon Simple
- DUpdate the ALB health check to send an Amazon Simple Notification Service (Amazon SNS)
How the community answered
(19 responses)- A84% (16)
- B5% (1)
- C11% (2)
Explanation
The Application Load Balancer (ALB) provides a CloudWatch metric called UnHealthyHostCount, which tracks the number of targets (EC2 instances) that fail health checks in the target group. By creating a CloudWatch alarm on this metric and setting a threshold greater than 0, the alarm will trigger whenever there is at least one unhealthy target. The alarm action can be configured to send a notification via Amazon SNS, alerting application owners when an issue occurs.
Topics
Community Discussion
No community discussion yet for this question.