A company is deploying a containerized microservice for processing real-time IoT telemetry data. The service runs on Amazon EC2 instances managed by an Auto Scaling group (ASG). An Application Load Balancer (ALB) routes traffic to the instances. The telemetry service is configured to listen on port 8080. The target group is configured to route traffic to port 8080. The security group associated with the EC2 instances allows inbound traffic on port 8080 from the ALB security group. After deployment, the ALB registers all EC2 instances as unhealthy, and users receive a 502 Bad Gateway error. The solutions architect verifies that the service is running and healthy on the instances when tested locally on port 8080. Which action should the solutions architect take to resolve this issue?
- AAdd a rule to the subnet Network Access Control List (NACL) allowing inbound traffic on port 80 and ephemeral ports from the client subnet.
- Update the target group health check settings to query port 8080 instead of the default port 80.Answer
- CConfigure the EC2 security group to permit inbound TCP traffic on port 80 from the Application Load Balancer security group.
- DChange the Amazon Route 53 routing policy to latency-based routing with target health checks pointing directly to the EC2 instances.