QuestionQ13

VerifiedDesign Resilient Architectures

A company has an HTTP application behind a Network Load Balancer (NLB). The NLB target group uses an Amazon EC2 Auto Scaling group that contains multiple EC2 instances running the web service.

The company finds that the NLB is not identifying HTTP errors for the application. These errors require the EC2 instances that run the web service to be restarted manually. The company must improve the availability of the application without writing custom scripts or code.

What should a solutions architect do to meet these requirements?

Explanation

A Network Load Balancer operates at Layer 4 and does not support HTTP/HTTPS health checks with application-level URLs. An Application Load Balancer operates at Layer 7 and supports HTTP/HTTPS health checks with path-based routing, enabling detection of HTTP-level errors. Replacing the NLB with an ALB and configuring EC2 Auto Scaling to replace instances reported as unhealthy by ALB health checks provides the required automatic recovery without custom scripts.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!