
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, path-based routing, and the ability to log the user's IP address. Option A is correct because it uses an Application Load Balancer (ALB) which supports HTTPS listeners and path-based routing. The ALB can offload TLS processing and includes the X-Forwarded-For header, which allows the web server to log the original client IP address. Option B is incorrect because it suggests using host-based routing rules, which are not required by the scenario. 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 processing handled by the load balancer. The web server must retain access to the user’s 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.