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.
Elastic Load Balancer can be Application or Network. Since the protocol is HTTP/HTTPS, we are talking about ALB. Then, if we retrieve the IP directly from the request we always receive the load balancer IP. To obtain the client IP address, we have to read "X-Forwarder-For" from the header. So the answer A is the correct one.
Application load balancer supports HTTP/HTTPS.
Questions states that the solution must access the client IP addresses. ALB passes the client's IP address in the header under "X-Forwarded-For". The answer is A.
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.
rcaliandro
1 year, 10 months agopancman
2 years, 3 months agok1kavi1
2 years, 5 months agokapil206001
2 years, 5 months ago