A company is planning to deploy an application on AWS behind an Elastic Load Balancer. The application uses an HTTP/HTTPS listener and must access the client IP addresses.
Which load-balancing solution meets these requirements?
A.
Use an Application Load Balancer and the X-Forwarded-For headers.
B.
Use a Network Load Balancer (NLB). Enable proxy protocol support on the NLB and the target application.
C.
Use an Application Load Balancer. Register the targets by the instance ID.
D.
Use a Network Load Balancer and the X-Forwarded-For headers.
Use an Application Load Balancer (ALB) and the X-Forwarded-For headers. When an ALB is used, the X-Forwarded-For header can be used to pass the client IP address to the backend servers.
Application Load Balancer (ALB) is a Layer 7 (HTTP/HTTPS) load balancer that supports handling HTTP headers, including the X-Forwarded-For header.
B/D - Eliminated - Network Load Balancer (NLB) operates at Layer 4 (TCP) and does not inherently handle HTTP headers
C) Eliminated - it does not address the requirement of accessing client IP addresses.
An Application Load Balancer (ALB) operates at the application layer (Layer 7) of the OSI model and supports HTTP/HTTPS traffic. It adds the X-Forwarded-For header to the request as it forwards it to the target, which contains the original client's IP address. This allows the application behind the ALB to access the client IP addresses.
is A
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/x-forwarded-headers.html
https://aws.amazon.com/elasticloadbalancing/features/?nc=sn&loc=2
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MrTee
Highly Voted 1 year, 6 months agosumanshu
Most Recent 4 months ago65703c1
5 months, 1 week agotopicsquestions
6 months, 1 week agoSerialiDr
9 months, 3 weeks agoHuiHsin
1 year, 4 months ago