Google Professional Cloud Network Engineer Question 259
Single answerGoogle Cloud PlatformYou are designing a private Google Cloud network for a web application hosted on Compute Engine instances. The web application needs to communicate securely with an internal microservice. To ensure high availability and scalability, you decide to use an internal load balancer as the next hop for routing traffic to the microservice. Which step is required to configure the internal load balancer as the next hop in this scenario?
- A
Create a static route with the internal load balancer's IP address as the next hop.
- B
Configure a forwarding rule with the internal load balancer's backends and assign its IP address as the next hop.
- C
Use a global external load balancer and configure its backend services to point to the internal microservice.
- D
Set up a Cloud NAT gateway to direct traffic through the internal load balancer.
Show answer and explanation
Correct answer: A
Explanation
To use an internal load balancer as a next hop, you need to create a static route with the load balancer's IP address as the next hop. This ensures that traffic is routed through the internal load balancer to the backends. Other options either involve external load balancers, forwarding rules, or NAT gateways, which are not relevant to this specific use case.
- A. Correct.
This is correct. When using an internal load balancer as a next hop, a static route must be created with the load balancer's IP address specified as the next hop.
- B. Incorrect.
This is incorrect. A forwarding rule is used to route traffic to the load balancer but is not directly used for configuring it as a next hop in a static route.
- C. Incorrect.
This is incorrect. A global external load balancer is used for external traffic and does not apply to internal traffic or internal load balancers.
- D. Incorrect.
This is incorrect. A Cloud NAT gateway is used for outbound internet traffic and is not relevant for routing internal traffic through an internal load balancer.