An administrator registers a fleet of Amazon EC2 instances running a web application on port 8080 to an Application Load Balancer (ALB) target group. The ALB's target group health checks are configured to use the default HTTP settings on port 80. As a result, the ALB marks all instances as unhealthy. Which action should the administrator take to resolve this health check failure?
- Modify the target group settings to override the health check port to 8080.Cevap
- BUpdate the health check path to a static file path like /health while keeping port 80.
- CChange the Route 53 routing policy to active-passive failover to bypass the unhealthy targets.
- DAssociate an Internet Gateway with the private subnet's route table to allow the ALB to reach the instances.
Cevap
Modify the target group settings to override the health check port to 8080.
The correct action is to modify the target group settings to override the health check port to 8080. This aligns the destination port of the health check packets with the port on which the web application on the EC2 instances is configured to listen.
Adım Adım Çözüm
Anahtar Kavram
Configuring Elastic Load Balancing target group health checks to align with backend application listening ports.