A company runs a high-traffic web application on a fleet of Amazon EC2 instances managed by an Auto Scaling group (ASG). The application is configured to listen on custom port 8080. The instances are registered with a target group behind an Application Load Balancer (ALB) that routes external traffic from port 443 to the target group. A solutions architect must configure health checks to ensure that the ASG accurately detects and replaces instances that fail at the application layer, while maintaining a secure and highly available setup.
Which configuration should the solutions architect implement?
- AConfigure the target group to perform health checks on default port 80 to simplify load balancer configurations, while allowing the instances to process application requests on port 8080.
- BModify the subnet Network ACL to allow inbound traffic on port 8080, and rely on the stateful nature of Network ACLs to automatically allow outbound ephemeral port return traffic to the Application Load Balancer.
- Configure the target group health check to query the application's status path on port 8080, and update the Auto Scaling group to use Elastic Load Balancing (ELB) health checks. Ensure the security groups allow traffic from the ALB to the instances on port 8080.Cevap
- DConfigure Route 53 with Latency routing to distribute incoming requests across multiple AWS Regions, using the latency policy as the primary mechanism to fail over and reroute traffic away from unhealthy EC2 instances without configuring Route 53 health checks.
Cevap
Configure the target group health check to query the application's status path on port 8080, and update the Auto Scaling group to use Elastic Load Balancing (ELB) health checks. Ensure the security groups allow traffic from the ALB to the instances on port 8080.
Configuring the target group health check to query the status path on port 8080 ensures that the ALB tests the actual application port. Setting the Auto Scaling group to use ELB health checks allows the ASG to terminate and replace instances that fail the ALB health checks, maintaining resilience at the application layer. Standard security group rules must also allow port 8080 traffic between the ALB and the instances.
Adım Adım Çözüm
Anahtar Kavram
Aligning target group health checks with custom application ports, enabling ELB health checks in the Auto Scaling group, and satisfying stateful security group and stateless Network ACL rules.
Tahmini Süre:2m 0s