CLOUD-NETWORK practice question 24 of 30

You are designing a hub-and-spoke network architecture for your company’s cloud-based environment. You need to make sure that all spokes are peered with the hub. The spokes must use the hub's virtual appliance for internet access. The virtual appliance is configured in high-availability mode with two instances using an internal load balancer with IP address 10.0.0.5. What should you do?

Full set: 233 questions
Answer options
A: Create a default route in the hub VPC that points to IP address 10.0.0.5. Delete the default internet gateway route in the hub VPC, and create a new higher-priority route that is tagged only to the appliances with a next hop of the default internet gateway. Export the custom routes in the hub. Import the custom routes in the spokes.
B: Create a default route in the hub VPC that points to IP address 10.0.0.5. Delete the default internet gateway route in the hub VPC, and create a new higher-priority route that is tagged only to the appliances with a next hop of the default internet gateway. Export the custom routes in the hub. Import the custom routes in the spokes. Delete the default internet gateway route of the spokes. Correct answer
C: Create two default routes in the hub VPC that point to the next hop instances of the virtual appliances. Delete the default internet gateway route in the hub VPC, and create a new higher-priority route that is tagged only to the appliances with a next hop of the default internet gateway. Export the custom routes in the hub. Import the custom routes in the spokes.
D: Create a default route in the hub VPC that points to IP address 10.0.0.5. Delete the default internet gateway route in the hub VPC, and create a new higher-priority route that is tagged only to the appliances with a next hop of the default internet gateway. Create a new route in the spoke VPC that points to IP address 10.0.0.5.
Correct Answer:
B. Create a default route in the hub VPC that points to IP address 10.0.0.5. Delete the default internet gateway route in the hub VPC, and create a new higher-priority route that is tagged only to the appliances with a next hop of the default internet gateway. Export the custom routes in the hub. Import the custom routes in the spokes. Delete the default internet gateway route of the spokes.
Explanation

To route traffic from spoke VPCs through a central hub's virtual appliance, VPC Network Peering with custom route exchange is required. The hub VPC needs a default route (0.0.0.0/0) pointing to the appliance's internal load balancer. The appliance itself requires a route to the internet, achieved by a high-priority route to the default internet gateway, using network tags to apply it only to the appliance VMs. The hub exports these custom routes. Spokes must import them and have their own default internet gateway routes deleted to force all internet-bound traffic through the peered hub connection, ensuring it transits the virtual appliance.

Why Incorrect

A. This configuration is incomplete. Without deleting the default route in the spokes, traffic from spoke VMs could still use their local default internet gateway.
C. This is not a high-availability configuration. Pointing routes to individual instances instead of the internal load balancer's stable IP address creates single points of failure.
D. Creating a route in the spoke VPC is incorrect. Routes from the hub should be learned dynamically via the VPC peering's custom route import/export feature.

References

1. Google Cloud Documentation, "VPC Network Peering overview," Section: "Exchanging custom routes." States that peered networks can exchange custom routes, which is necessary for this architecture.

2. Google Cloud Documentation, "Set up a hub-and-spoke network between Google Cloud VPC networks," Section: "Configure the hub VPC network," Step 6. Describes creating a default route to an internal load balancer for a next-hop appliance.

3. Google Cloud Documentation, "Internal passthrough Network Load Balancer overview," Section: "Use cases." Mentions using an internal load balancer as the next hop for a default route to a firewall appliance.

4. Google Cloud Documentation, "Using routes," Section: "Applicability and order." Explains how network tags can be used to apply routes to specific VM instances, as required for the appliance's internet access.

Scroll to Top