A financial company hosts a reporting application on a fleet of Amazon EC2 instances managed by an Auto Scaling group (ASG). The instances run in private subnets and are registered with an Application Load Balancer (ALB). The application receives traffic on port 8000, but its health check endpoint is exposed on administrative port 8081. Currently, the ALB is marking all instances as unhealthy, and the ASG is continuously terminating and replacing them. Which two configurations are required to resolve this issue and allow the ALB to perform health checks successfully? (Select two.)
- Configure the health check port in the ALB target group settings to port 8081.Cevap
- Add a rule to the EC2 instances' security group allowing inbound TCP traffic on port 8081 from the ALB's security group.Cevap
- CConfigure an inbound rule in the private subnet's Network ACL to allow TCP traffic on port 8081 from the ALB's security group.
- DAdd an ALB listener on port 8081 that forwards traffic directly to the registered EC2 instances.
- EConfigure a Route 53 latency routing policy with a health check targeting the instances directly on port 8081.
Cevap
The target group health check settings must be updated to use port 8081, and the security group of the EC2 instances must be modified to allow inbound TCP traffic on port 8081 from the security group of the Application Load Balancer.
To resolve the issue, the solutions architect must configure the ALB target group's health check port to match the administrative port (8081) where the application is listening for health status checks. Additionally, the security group for the EC2 instances must allow inbound TCP traffic on port 8081 from the security group of the Application Load Balancer, ensuring the health check requests are permitted through the instance's firewall.
Adım Adım Çözüm
Anahtar Kavram
Configuring Application Load Balancer health checks on custom ports requires overriding the health check port in the target group and allowing the traffic through instance-level security groups.