A company is deploying a highly available web server behind a load balancer that must route requests to multiple target groups based on the request URL. All traffic must be HTTPS and TLS must be terminated at the load balancer. The web servers need the client's IP address for accurate logging. Which design meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Deploy an Application Load Balancer with an HTTPS listener. Use path-based routing rules to send requests to the appropriate target group. Ensure the X-Forwarded-For header is included when forwarding traffic to targets..
Why this is the answer
An Application Load Balancer (ALB) is the correct choice because it supports HTTPS listeners for TLS termination and advanced routing features like path-based routing, which is essential for routing requests based on the URL. The X-Forwarded-For header, automatically added by ALBs, preserves the client's IP address, meeting the logging requirement. Network Load Balancers (NLBs) are incorrect because they operate at Layer 4 and do not support path-based routing. While NLBs can preserve client IP, their lack of Layer 7 routing makes them unsuitable for this scenario. Deploying separate listeners per domain or using host-based routing is unnecessary and more complex when path-based routing on a single HTTPS listener suffices for URL-based differentiation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed