
Answer-first summary for fast verification
Answer: Deploy an Application Load Balancer with an HTTPS listener. Use path-based routing rules to forward the traffic to the correct target group. Include the X-Forwarded-For request header with traffic to the targets.
The question requires a solution that supports HTTPS, TLS offloading, and the ability to route traffic based on the URL, while also ensuring the web server knows the user's IP address for logging purposes. Option A is correct because it uses an Application Load Balancer (ALB) with an HTTPS listener, which supports TLS offloading. The ALB also supports path-based routing, allowing it to route traffic to different target groups based on the URL. Including the X-Forwarded-For request header ensures that the web server receives the original client IP address, fulfilling the logging requirement. Option B is incorrect because it suggests using host-based routing rules for each domain, which is not necessary for the scenario described. Options C and D are incorrect because they suggest using a Network Load Balancer (NLB), which does not support path-based routing or the X-Forwarded-For header in the same way an ALB does. Therefore, the correct answer is A.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company is launching a new application in the AWS Cloud and requires a highly available web server positioned behind an Elastic Load Balancer. The load balancer should direct traffic to multiple target groups based on the request URL. All traffic must be secured via HTTPS, with TLS termination handled by the load balancer. The web server must retain access to the user’s original IP address to ensure accurate security logging.
Which solution fulfills these requirements?
A
Deploy an Application Load Balancer with an HTTPS listener. Use path-based routing rules to forward the traffic to the correct target group. Include the X-Forwarded-For request header with traffic to the targets.
B
Deploy an Application Load Balancer with an HTTPS listener for each domain. Use host-based routing rules to forward the traffic to the correct target group for each domain. Include the X-Forwarded-For request header with traffic to the targets.
C
Deploy a Network Load Balancer with a TLS listener. Use path-based routing rules to forward the traffic to the correct target group. Configure client IP address preservation for traffic to the targets.
D
Deploy a Network Load Balancer with a TLS listener for each domain. Use host-based routing rules to forward the traffic to the correct target group for each domain. Configure client IP address preservation for traffic to the targets.
No comments yet.