A solutions architect is troubleshooting a microservices application deployed on AWS. The application consists of a fleet of Amazon EC2 instances in an Auto Scaling group (ASG) residing in private subnets. The ASG is registered with a target group of an Application Load Balancer (ALB) located in public subnets. The application is configured to listen on TCP port 8443, and the target group is configured with a target port of 8443. The health check is set to use the `traffic-port` (TCP port 8443) with the path `/healthz`.
To secure the network traffic, the following configurations are applied:
1. The security group associated with the EC2 instances allows inbound TCP traffic on port 8443 from the security group of the ALB.
2. The custom Network ACL (NACL) for the private subnets allows inbound TCP traffic on port 8443 from the public subnet CIDR block.
3. The custom NACL for the private subnets allows outbound TCP traffic on port 8443 to the public subnet CIDR block.
The application is running correctly on the EC2 instances, and querying the `/healthz` endpoint locally on the instances returns a `200 OK` status. However, the ALB marks all instances in the target group as unhealthy, and the ASG is continuously terminating and replacing the instances.
Which of the following modifications is required to resolve this issue and allow the ALB to successfully perform health checks?
- Modify the private subnet outbound Network ACL (NACL) rule to allow outbound TCP traffic on ephemeral ports (1024-65535) to the public subnet CIDR block.Answer
- BModify the security group associated with the EC2 instances to allow outbound TCP traffic on ephemeral ports (1024-65535) to the security group of the ALB.
- CChange the health check port in the ALB target group settings from 'traffic-port' to port 80, and ensure the application on the EC2 instances is configured to listen on port 80 for health checks.
- DUpdate the Route 53 latency routing policy to direct traffic to the private IP addresses of the EC2 instances instead of the ALB's DNS name, and enable health check evaluation.