A company runs a web application on Amazon EC2 instances inside a private subnet. The instances are registered to a target group of an Application Load Balancer (ALB) located in a public subnet. The application is configured to run on port 8080, and the target group's health check is configured to use the default settings (HTTP on traffic-port at path '/'). Recently, the Security team implemented a new custom Network Access Control List (NACL) on the private subnet with an inbound rule allowing TCP port 8080 from the public subnet CIDR, and an outbound rule allowing TCP port 8080 to the public subnet CIDR. Additionally, the application was updated to redirect all unauthenticated requests to '/login' via an HTTP 302 response code. Following these changes, the ALB reports all EC2 instances as unhealthy. To resolve this issue and restore the healthy status of the targets, which set of actions must a SysOps Administrator take?
- AUpdate the target group health check matcher to accept HTTP 302, and modify the private subnet's outbound network ACL to allow TCP traffic on port 8080 to the public subnet CIDR.
- BModify the target group's health check port to port 80, configure the EC2 instances' web server to listen on port 80 for health checks, and add a rule to the private subnet's inbound network ACL to allow TCP traffic on port 80.
- Configure a dedicated, unauthenticated health check endpoint on the application that returns HTTP 200, update the target group health check path to point to this endpoint, and modify the private subnet's outbound network ACL to allow TCP traffic on ephemeral ports (1024-65535) to the public subnet CIDR.Answer
- DChange the Route 53 routing policy for the primary domain name from failover to weighted, set the primary ALB's weight to 0, and configure the target group health check path to use HTTPS on port 443.