A SysOps administrator is troubleshooting an Application Load Balancer (ALB) that is serving a web application. The application runs on Amazon EC2 instances in private subnets and listens on port 8081. The target group is configured to route traffic to the instances on port 8081. However, the ALB is returning HTTP 503 Service Unavailable errors to clients, and all instances in the target group are reported as unhealthy with the status description 'Healthcheck.Failed'. The administrator verifies that the target group's health check is configured to perform HTTP checks on port 80. Which of the following actions should the administrator take to resolve this issue and restore the health of the targets? (Select TWO.)
- Update the security group of the EC2 instances to allow inbound TCP traffic on port 8081 from the security group associated with the ALB.Cevap
- Modify the target group health check configuration to use port 8081 instead of port 80.Cevap
- CUpdate the security group of the ALB to allow inbound TCP traffic on port 80 from the EC2 instances' security group.
- DModify the subnet's outbound network ACL (NACL) rules to allow traffic on port 80 to the Internet Gateway.
- ECreate an active-passive Amazon Route 53 DNS failover routing policy to route traffic directly to the EC2 instances.
Cevap
Update the security group of the EC2 instances to allow inbound TCP traffic on port 8081 from the security group associated with the ALB, and modify the target group health check configuration to use port 8081 instead of port 80.
To resolve the health check failure, the health check port must be aligned with the application port, and the firewall rules must permit this path. Specifically, the target group's health check configuration must be modified to target port 8081 where the application is listening. Concurrently, the security group of the EC2 instances must allow inbound TCP traffic on port 8081 from the ALB's security group so that the load balancer's health check probes can successfully reach the instances.
Adım Adım Çözüm
Anahtar Kavram
Elastic Load Balancing Health Check Port and Security Group Alignment