Soru

Zorluk: KolayAuto Scaling and Elastic Load Balancing (ELB)

A startup is deploying a new API service on Amazon EC2 instances managed by an Auto Scaling group (ASG). The API service is configured to run on port 5000. An Application Load Balancer (ALB) is configured to route traffic to these instances. However, the ALB shows all targets in the target group as unhealthy. A solutions architect verifies that the API service is running on the instances. Which two configurations are required to resolve this issue and allow the ALB to perform successful health checks? (Select two.)

  1. Configure the target group health check settings to use port 5000 or the traffic port.Cevap
  2. Update the security group associated with the EC2 instances to allow inbound traffic on port 5000 from the security group of the Application Load Balancer.Cevap
  3. C
    Configure a stateless Network ACL rule to allow inbound traffic on port 5000, assuming it will automatically allow the return traffic.
  4. D
    Set the target group health check port to default port 80 to ensure the Application Load Balancer can ping the web server.
  5. E
    Configure an Amazon Route 53 latency routing policy to route the load balancer's health checks to the nearest EC2 instance.

Cevap

Configure the target group health check settings to use port 5000 or the traffic port, and update the security group associated with the EC2 instances to allow inbound traffic on port 5000 from the security group of the Application Load Balancer.
The Application Load Balancer must be configured to send health check requests to the port where the API service is listening, which is port 5000. Additionally, the security group for the EC2 instances must allow inbound traffic on port 5000 from the ALB's security group so the health check probes can successfully reach the instances.

Adım Adım Çözüm

1
Identify the application port and verify health check settings.
The application runs on port 5000, but standard health checks default to port 80 or traffic port if not customized.
To verify health, the load balancer must query the specific port where the application is listening.
2
Ensure network path and security group permissions are open.
The target EC2 instances must allow inbound traffic from the ALB on port 5000.
Security groups are stateful; allowing inbound traffic on port 5000 from the ALB security group allows both health check probes and client request traffic.

Anahtar Kavram

Application Load Balancer health checks require alignment between the target group health check port configuration, the application listening port, and security groups that permit traffic from the load balancer.
Bu soruyu puanla