Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your organization operates a multi-VPC architecture across multiple Google Cloud projects. You have a central hub network named hub-vpc (10.0.0.0/16) that is connected via VPC Network Peering to spoke-a-vpc (10.1.0.0/16). You deploy a new custom VPC named spoke-b-vpc (10.2.0.0/16) and configure VPC Network Peering between spoke-b-vpc and hub-vpc.
Workloads running in spoke-b-vpc must directly access backend services running in spoke-a-vpc over private RFC 1918 IP addresses. Currently, network traffic from spoke-b-vpc fails to reach spoke-a-vpc. Furthermore, the ingress firewall rules in spoke-a-vpc only allow traffic originating from 10.1.0.0/16.
How should you resolve the connectivity issue while adhering to Google Cloud networking best practices?
Configure custom static routes in hub-vpc targeting spoke-a-vpc and spoke-b-vpc, and enable custom route exporting across all existing peering connections.
Modify the existing peering on hub-vpc to enable export of subnet routes with public IPs, and rely on the implied default VPC firewall rules for inter-subnet communication.
Deploy Cloud NAT in hub-vpc and configure proxy routing to translate traffic between spoke-a-vpc and spoke-b-vpc.
Create a bidirectional VPC Network Peering connection directly between spoke-a-vpc and spoke-b-vpc, and update the ingress firewall rules in both VPCs to allow traffic from the respective RFC 1918 peer subnet ranges.
VPC Network Peering allows private RFC 1918 connectivity across distinct Virtual Private Cloud networks without using external IP addresses, VPN gateways, or intermediate network appliances. Traffic remains entirely within Google's software-defined network (Andromeda).
hub-vpc) cannot route traffic between two other peered networks (spoke-a-vpc and spoke-b-vpc). Establishing a direct peering connection between spoke-a-vpc and spoke-b-vpc directly bridges their subnet route tables.spoke-a-vpc to spoke-b-vpc, and another from spoke-b-vpc to spoke-a-vpc—before the peering state moves to ACTIVE.10.2.0.0/16 in spoke-a-vpc and 10.1.0.0/16 in spoke-b-vpc (or broad RFC 1918 ranges) ensures the peer traffic is permitted.Direct peering combined with explicit ingress firewall rules directly resolves the non-transitive routing constraint and firewall denial without adding intermediate routing appliances, operational overhead, or additional network latency.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Still curious? Scout, our AI tutor, can explain this concept further and answer your follow-up questions.