Google Professional Cloud Network Engineer Question 419
Single answerGoogle Cloud PlatformYou are designing a Google Cloud solution for a web application hosted on a managed instance group in multiple regions. The application needs to handle incoming HTTP and HTTPS traffic globally while distributing the traffic to the closest regional backend service. You want to configure a forwarding rule to achieve this. Which type of forwarding rule should you use?
- A
Global forwarding rule with a target HTTPS proxy
- B
Regional forwarding rule with a target HTTP proxy
- C
Global forwarding rule with a target TCP proxy
- D
Regional forwarding rule with a target backend service
Show answer and explanation
Correct answer: A
Explanation
To implement global HTTP(S) load balancing, you must use a global forwarding rule in combination with a target HTTPS proxy. This setup enables the distribution of traffic to the closest backend services across multiple regions based on proximity and health checks. Regional forwarding rules are not capable of providing global traffic management, and TCP proxies are used for non-HTTP(S) traffic.
- A. Correct.
A global forwarding rule with a target HTTPS proxy is required for global HTTP(S) load balancing. It distributes traffic to the closest backend across multiple regions.
- B. Incorrect.
A regional forwarding rule with a target HTTP proxy is not suitable for global load balancing as it only handles traffic within a single region.
- C. Incorrect.
A global forwarding rule with a target TCP proxy is used for TCP load balancing, not HTTP(S) traffic.
- D. Incorrect.
A regional forwarding rule with a target backend service cannot distribute traffic globally and is limited to a single region.