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 questionsTo 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.
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.
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.
Keep practicing
Take the free CLOUD-NETWORK practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLOUD-NETWORK practice questions
- Question 1You are configuring the final elements of a migration effort where resources have been mo…
- Question 2You recently configured Google Cloud Armor security policies to manage traffic to your ap…
- Question 3You want to create a service in GCP using IPv6. What should you do?
- Question 4You work for a multinational enterprise that is moving to GCP. These are the cloud requir…
- Question 5You have a storage bucket that contains two objects. Cloud CDN is enabled on the bucket, …
- Question 6You want to establish a dedicated connection to Google that can access Cloud SQL via a pu…
