An organization runs an API service on AWS Fargate tasks registered to an Application Load Balancer (ALB) target group using the 'ip' target type. The API receives client requests over HTTPS on port 8443, but the backend application container exposes an HTTP endpoint on port 8080 specifically for health status monitoring. The SysOps Administrator notices that the target group shows all Fargate tasks as unhealthy with the description 'Health checks failed with a connection timeout'. Which two actions should the administrator take to resolve this health check issue? (Select TWO.)
- Modify the target group settings to specify port 8080 as the health check port.Answer
- Update the ECS Fargate tasks' security group to allow inbound traffic on port 8080 from the Application Load Balancer's security group.Answer
- CChange the Route 53 routing policy to active-passive failover and associate the Route 53 health check directly with the individual ECS Fargate task private IP addresses.
- DUpdate the outbound rules of the public subnet's Network Access Control List (NACL) to deny outbound ephemeral port ranges (1024-65535) to secure the health check path.
- EModify the target group's health check configuration to use HTTP over port 8443 and configure the Fargate tasks to redirect all port 8080 health check probes to port 8443.
Answer
Modify the target group settings to specify port 8080 as the health check port, and update the ECS Fargate tasks' security group to allow inbound traffic on port 8080 from the Application Load Balancer's security group.
The correct configuration requires overriding the target group's default health check port to port 8080 since that is where the backend application is listening for health status probes. In addition, the security group of the ECS Fargate tasks must permit inbound traffic on port 8080 from the Application Load Balancer's security group to allow the health check probes to pass through.
Step-by-Step Solution
Key Concept
ELB Target Group Health Check Port Overrides and Target Security Group Configurations