Amazon

ANS-C01 practice question 2

AWS Certified Advanced Networking - Specialty (ANS-C01) · free question 2 of 20

Question

A company is deploying a new application in the AWS Cloud. The company wants a highly available web server that will sit behind an Elastic Load Balancer. The load balancer will route requests to multiple target groups based on the URL in the request. All traffic must use HTTPS. TLS processing must be offloaded to the load balancer. The web server must know the user’s IP address so that the company can keep accurate logs for security purposes. Which solution will meet 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. Correct
  • 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.

Explanation

Option A is correct because it specifies deploying an Application Load Balancer (ALB) with an HTTPS listener, which supports path-based routing rules to direct traffic to appropriate target groups based on URL paths. Additionally, including the X-Forwarded-For request header ensures that the web server receives the original client IP address for logging purposes.

Need the theory? Learn it free in the ANS-C01 course on Godlike Academy

Practice the whole free set

Answer all 20 free ANS-C01 questions with instant feedback, or unlock all 296 questions with Learn and Exam modes.