A SysOps administrator configures an Application Load Balancer (ALB) to route traffic to Amazon EC2 instances hosting a web application. The target group is configured to perform HTTP health checks on port 80 using the default path `/`. To meet security requirements, the administrator implements Basic Authentication at the web server level across the entire website. Shortly after, the ALB target group marks all EC2 instances as unhealthy. Which configuration change will resolve the target group health check failures?
- AUpdate the target group health check settings to include the Basic Authentication credentials within the custom HTTP request headers.
- BConfigure an Amazon Route 53 failover routing policy to redirect client requests to a static error page hosted in an Amazon S3 bucket.
- Configure a dedicated, unauthenticated path such as `/health` on the web server, and update the target group health check path to point to this new path.Cevap
- DModify the target group's successful response matcher code configuration to accept HTTP 401 status codes as healthy.
Cevap
Configure a dedicated, unauthenticated path such as `/health` on the web server, and update the target group health check path to point to this new path.
The correct option is to configure a dedicated, unauthenticated path such as `/health` on the web server, and update the target group health check path to point to this new path. Application Load Balancer health checks do not support sending authentication credentials. By creating an unauthenticated path specifically for health checks, the ALB can verify the web server is running and responding with an HTTP 200 OK without triggering the Basic Authentication prompt.
Adım Adım Çözüm
Anahtar Kavram
Elastic Load Balancing Health Checks and Authentication
Tahmini Süre:1m 30s