Google Cloud Professional Cloud Network Engineer — Question 143
You are configuring a new HTTP application that will be exposed externally behind both IPv4 and IPv6 virtual IP addresses, using ports 80, 8080, and 443. You will have backends in two regions: us-west1 and us-east1. You want to serve the content with the lowest-possible latency while ensuring high availability and autoscaling, and create native content-based rules using the HTTP hostname and request path. The IP addresses of the clients that connect to the load balancer need to be visible to the backends. Which configuration should you use?
Answer options
- A. Use Network Load Balancing
- B. Use TCP Proxy Load Balancing with PROXY protocol enabled
- C. Use External HTTP(S) Load Balancing with URL Maps and custom headers
- D. Use External HTTP(S) Load Balancing with URL Maps and an X-Forwarded-For header
Correct answer: D
Explanation
The correct answer is D because External HTTP(S) Load Balancing with URL Maps and an X-Forwarded-For header allows the original client IP addresses to be forwarded to the backend services, which is essential for visibility. Options A and B do not provide the necessary content-based routing and visibility of client IPs, while option C does not specifically mention the X-Forwarded-For header, which is crucial for this scenario.