Network topology in Google Cloud is the connective tissue that binds workloads, data stores, and external systems into a single addressable estate. The architect's task is not to wire up a single VPC but to compose a global mesh where every flow has a documented path, a documented egress cost, and a documented failure mode. Picking the wrong topology turns a six-figure connectivity bill into a seven-figure one, and turns recoverable incidents into multi-day outages. Provisioning starts after the design has fixed the trust boundaries, the egress edges, and the bandwidth class for each flow.
The provisioning surface is unusually broad. A topology can include:
- A Shared VPC host project that exposes subnets to many service projects
- A Network Connectivity Center hub that fans out spokes to on-premises sites and other clouds
- Hierarchical firewall policies at the organization and folder level
- Private Service Connect endpoints into Google APIs and partner services
- Load balancers that terminate traffic at the edge or inside the VPC
Each primitive has its own quota envelope and its own behavior under failure, and the most common architect mistake is treating them as interchangeable. They are not.
The four sub-topics that follow are the configuration axes the exam tests. Each axis has a small number of correct provisioning patterns and a long list of subtle traps. The objective is not to memorize all permutations but to internalize the decision points that the exam blueprint maps to scenario questions.
Extending to on-premises environments (hybrid networking)
Hybrid networking provisioning starts by classifying the on-premises egress need on three dimensions: bandwidth ceiling, latency tolerance, and SLA appetite.
The four primary primitives are Cloud VPN (HA VPN and Classic VPN), Dedicated Interconnect, Partner Interconnect, and Network Connectivity Center as the routing fabric that ties them together.
How it works
HA VPN gives you two interfaces over public internet with a 99.99% availability SLA when both tunnels are healthy and BGP is correctly configured on both ends.
- A single tunnel on HA VPN drops the SLA to 99.9%.
- Classic VPN tops out at 99.9% with no equivalent HA construct.
Dedicated Interconnect provisions a 10 Gbps or 100 Gbps physical link from your colocation cage to a Google peering edge.
Each circuit terminates on an attachment (compute.interconnectAttachments) that publishes BGP routes into a Cloud Router.
Provisioning takes longer than VPN because cross-connects must be physically built, but the resulting path is private, has predictable latency, and supports the 99.99% SLA when deployed across two metros.
Partner Interconnect uses a service provider's existing footprint and lets you provision attachments between 50 Mbps and 50 Gbps without owning the colocation.
# Provision an HA VPN gateway and a single tunnel pair to an on-premises peer
gcloud compute vpn-gateways create prod-hybrid-vpn-gw-uc1 \
--network=prod-hub-vpc \
--region=us-central1 \
--stack-type=IPV4_ONLY
gcloud compute external-vpn-gateways create onprem-dc1-peer \
--interfaces=0=203.0.113.10,1=203.0.113.11 \
--redundancy-type=TWO_IPS_REDUNDANCY
gcloud compute vpn-tunnels create prod-hybrid-tunnel-0 \
--peer-external-gateway=onprem-dc1-peer \
--peer-external-gateway-interface=0 \
--region=us-central1 \
--ike-version=2 \
--shared-secret-file=/secrets/ipsec-psk.txt \
--router=prod-hub-router-uc1 \
--vpn-gateway=prod-hybrid-vpn-gw-uc1 \
--interface=0
Key points
Routing across hybrid edges is dynamic in production environments.
Cloud Router runs BGP sessions over the tunnel or attachment, learns prefixes from on-premises, and advertises VPC subnets and any custom routes you mark with --advertisement-mode CUSTOM.
The two most common provisioning errors are:
- forgetting to advertise the right subnets (which works at validation time and silently breaks the first time a new subnet is added)
- conflating the Cloud Router ASN with the on-premises ASN (Cloud Router defaults to 64514 if not specified).
Network Connectivity Center is the construct that turns a star of hybrid edges into a manageable mesh.
A hub aggregates spokes, where each spoke is:
- a VPN tunnel
- an Interconnect attachment
- a router appliance VPC
- another VPC
Spoke-to-spoke route exchange happens through the hub, removing the need for a tangle of full-mesh BGP sessions. The pricing model charges per spoke per hour and per GB processed.
📊 Limit: HA VPN supports up to 3 Gbps of aggregate IPsec throughput per tunnel; for higher requirements add tunnels or move to Dedicated Interconnect. A Cloud Router can hold up to 100 learned routes per BGP peer by default, and you can raise this with
--set-advertisement-rangesand quota requests.
💡 Exam Trap: A 99.99% SLA on HA VPN requires two tunnels to two different interfaces of the peer gateway and BGP up on both. A single-tunnel HA VPN topology does not get the 99.99% number even though the gateway itself is HA-rated.
💡 Exam Trap: Dedicated Interconnect attachments live in a region. A single attachment cannot give you global egress; you provision attachments in multiple metros to cover global routing. Pricing depends on the number of attachments, not on the underlying circuit count.
⚠️ Anti-Pattern: Provisioning Classic VPN for a workload that will move significant volume. Classic VPN does not support BGP for dynamic routing on every configuration, has a lower SLA, and is being retired from new deployments. Use HA VPN unless you have a documented compatibility constraint.
🎯 Scenario: A retail customer ingests 5 TB per day from on-premises into BigQuery. They start on a single 1 Gbps Partner Interconnect attachment and hit congestion during nightly batch runs. The right move is a second attachment in a different edge availability domain configured as active/active with ECMP load sharing, which doubles capacity and lifts the SLA to 99.99%, rather than fragmenting the workload across VPN.
Decision Anchor: Choose HA VPN when traffic is bursty, sub-3 Gbps per tunnel, and you can tolerate public internet path variability. Choose Dedicated Interconnect when you need predictable latency, more than 10 Gbps sustained, and you control the colocation. Choose Partner Interconnect when you need 50 Mbps to 50 Gbps with private routing and no colocation access.
Extending to a multicloud environment that may include Google Cloud-to-Google Cloud communication
Multicloud provisioning falls into two distinct cases: Google Cloud-to-other-cloud, and Google Cloud-to-Google Cloud across projects, organizations, or regions. The two cases share the Network Connectivity Center hub primitive but have different attachments and pricing.
Cross-Cloud Interconnect provides a private, Google-managed circuit to AWS, Azure, Oracle Cloud, and Alibaba Cloud at 10 Gbps or 100 Gbps. Each circuit terminates on a VLAN attachment on the Google side and on the partner cloud's interconnect product on the other side. You configure BGP on the Cloud Router and on the peer's virtual gateway, advertise the VPC ranges that should be reachable from the other cloud, and accept the routes the other cloud advertises. Provisioning takes the same lead time as a Dedicated Interconnect because the circuit is a physical cross-connect.
For Google Cloud-to-Google Cloud communication inside a single organization, the right primitive depends on the boundary.
- Within a project, all subnets in a VPC route to each other by default.
- Across projects in the same organization, Shared VPC lets a host project expose subnets to service projects with IAM-controlled subnet access.
- Across VPCs that should remain administratively separate, VPC peering provides non-transitive route exchange at line rate without bandwidth limits.
- Across regions, the VPC is global, so a single VPC handles cross-region routing without additional primitives.
# Peer two VPCs that need bidirectional reachability without transitive routing
gcloud compute networks peerings create prod-to-analytics \
--network=prod-hub-vpc \
--peer-project=analytics-host-prj \
--peer-network=analytics-hub-vpc \
--import-custom-routes \
--export-custom-routes \
--import-subnet-routes-with-public-ip \
--export-subnet-routes-with-public-ip
When transitivity is required, switch from VPC peering to a Network Connectivity Center hub with VPC spokes.
The hub re-advertises spoke routes to all other spokes by default, so a request from VPC-A can reach VPC-B via VPC-C, which is not possible with raw peering. The trade-off is:
- the per-spoke hourly cost
- the additional configuration overhead
Private Service Connect changes the multicloud picture for managed services.
A service producer in one project publishes a service attachment, and consumers in other projects, other VPCs, or even other clouds create endpoints that map a consumer-side IP to the producer service.
This pattern avoids exposing the producer through VPC peering and removes the IP range overlap problem that plagues raw peering.
# Producer side, expose an internal load balancer through a service attachment
gcloud compute service-attachments create prod-payments-svc-attach \
--region=us-central1 \
--producer-forwarding-rule=prod-payments-ilb-fr \
--connection-preference=ACCEPT_MANUAL \
--consumer-accept-list=consumer-prj-1=10,consumer-prj-2=5 \
--nat-subnets=prod-psc-nat-uc1
# Consumer side, create an endpoint that resolves to the producer service
gcloud compute forwarding-rules create payments-psc-endpoint \
--region=us-central1 \
--network=consumer-vpc \
--subnet=consumer-app-subnet-uc1 \
--target-service-attachment=projects/prod-host-prj/regions/us-central1/serviceAttachments/prod-payments-svc-attach
📊 Limit: VPC peering has a soft cap of 250 peering connections per VPC and a hard cap on the number of routes that the peered VPC can have. Network Connectivity Center has a default cap of 250 spokes per hub. Private Service Connect endpoints share the regional forwarding rule quota.
💡 Exam Trap: VPC peering is non-transitive. If VPC-A peers to VPC-B and VPC-B peers to VPC-C, A cannot reach C through B. The exam tests this with three-VPC scenarios.
💡 Exam Trap: Cross-Cloud Interconnect billing covers the Google-managed cross-connect and the VLAN attachment, but the other cloud's interconnect product and any egress on that cloud are billed separately. Architects who size only the Google portion underestimate the run rate by half.
⚠️ Anti-Pattern: Forcing all inter-cloud communication through a single hub VPC just because that pattern works for hybrid. For service-to-service patterns where the consumer set is well known, Private Service Connect endpoints are simpler, cheaper, and avoid range overlap entirely.
Decision Anchor: Choose VPC peering when two VPCs need pairwise reachability with no transitivity. Choose Network Connectivity Center when transitive routing across many VPCs or hybrid spokes is needed. Choose Private Service Connect when the boundary is a service rather than a network.
Security protection (e.g. intrusion protection, access control, and firewalls)
Network security in Google Cloud is layered.
The outermost layer is the organization-level hierarchical firewall policy, which applies before any VPC firewall rule and cannot be bypassed by project-level admins.
The next layer is the VPC-level network firewall policy, which has named rules with priorities, target service accounts, and target tags.
The innermost layer is Cloud Next Generation Firewall with its threat intelligence and intrusion prevention features.
Hierarchical firewall policies attach to the organization or to folders and contain rules that GOTO-skip, allow, or deny traffic before VPC rules are evaluated.
The pattern for an enterprise estate is to define a baseline policy at the organization that blocks egress to known bad CIDRs and allows internal communication to approved CIDRs, then defer to VPC-level policies for application-specific rules.
# Create an organization-level firewall policy and attach it
gcloud compute firewall-policies create org-baseline-fw-pol \
--organization=987654321012 \
--description="Baseline org-wide firewall policy"
gcloud compute firewall-policies rules create 1000 \
--action=deny \
--firewall-policy=org-baseline-fw-pol \
--description="Block egress to known malicious ranges" \
--direction=EGRESS \
--layer4-configs=tcp,udp \
--dest-ip-ranges=192.0.2.0/24
gcloud compute firewall-policies associations create \
--firewall-policy=org-baseline-fw-pol \
--organization=987654321012
Cloud Next Generation Firewall raises the inspection capability. Its enterprise tier adds layer 7 intrusion prevention with managed signature sets, TLS interception, and FQDN-based rules.
Provisioning is per-endpoint, where an endpoint is a regional construct that traffic is steered through using firewall endpoint associations. The pricing is per-endpoint per hour plus per-GB inspected, so the architect's task is to limit inspection to traffic that warrants it (typically internet-facing ingress, partner-VPC ingress, and high-risk egress).
Intrusion prevention is one part of the security perimeter. Cloud Armor handles edge protection for the global load balancers, providing WAF, DDoS protection, geographic restrictions, and adaptive protection that learns baselines and surfaces anomalies.
Cloud Armor sits in front of HTTP(S) and TCP/SSL proxy load balancers and applies its rules before the request reaches the backend. Adaptive Protection signals integrate with Security Command Center for centralized review.
Access control for the network surface is split between IAM (who can edit topology) and Identity-Aware Proxy (who can reach an application). IAM roles like roles/compute.networkAdmin, roles/compute.securityAdmin, and roles/compute.networkUser separate the configuration plane from the consumption plane.
Identity-Aware Proxy gates TCP forwarding to internal services and HTTPS to web applications based on the user's identity and context, replacing IP allowlists with identity-bound access.
📊 Limit: A single VPC firewall policy supports up to 2,000 rules by default, with quota expansion available. Cloud Next Generation Firewall endpoints have a regional quota that defaults to 5 per region per project.
💡 Exam Trap: Hierarchical firewall policies use
GOTO_NEXTas an action to skip to the next layer without making a decision. A common error in scenario questions is treatingGOTO_NEXTas an implicit allow, which it is not; the next policy still has to make a decision.
💡 Exam Trap: Cloud Armor edge security policies only protect global load balancers. A regional internal load balancer or a direct VM IP does not pass through Cloud Armor. Architects sometimes assume that Cloud Armor is universal across all load balancer flavors; it is not.
⚠️ Anti-Pattern: Building open egress with a blanket allow rule and trying to restrict outbound traffic by IP-allowlisting after the fact. The right pattern is default-deny egress with explicit allowlists, either via FQDN rules in Cloud NGFW or via Secure Web Proxy for HTTP egress inspection.
Decision Anchor: Choose hierarchical firewall policies for organization-wide baselines that must apply regardless of project admin actions. Choose VPC firewall policies for workload-specific rules. Choose Cloud Next Generation Firewall with IPS when payload inspection or TLS termination is required.
VPC design and load balancing (e.g., access to cloud, internet, and cloud adjacent services)
VPC design begins with the choice between auto mode and custom mode subnets.
- Auto mode creates a
/20subnet in every region with a fixed range and is suitable only for sandbox or quick-test work. - Custom mode lets you allocate specific CIDR ranges per region per VPC, which is the only acceptable pattern for production because it lets you reserve non-overlapping ranges that play well with on-premises and other clouds.
The second design choice is single VPC versus Shared VPC versus multi-VPC.
Shared VPC is the dominant production pattern for enterprises, where a single host project owns the network and service projects consume subnets via IAM grants. The host project enforces organization-wide network governance, while application teams deploy into service projects without needing network admin rights. Multi-VPC patterns are appropriate when administrative isolation between business units is stronger than the convenience of shared subnets.
# Create a custom-mode VPC and a regional subnet with secondary ranges for GKE pods and services
gcloud compute networks create prod-shared-vpc \
--subnet-mode=custom \
--bgp-routing-mode=global
gcloud compute networks subnets create prod-app-subnet-uc1 \
--network=prod-shared-vpc \
--region=us-central1 \
--range=10.10.0.0/22 \
--secondary-range=pods=10.20.0.0/16,services=10.30.0.0/20 \
--enable-private-ip-google-access \
--enable-flow-logs \
--logging-aggregation-interval=INTERVAL_5_SEC \
--logging-flow-sampling=0.5
Load balancing in Google Cloud is the most heterogeneous network construct. The product family covers:
- Application Load Balancer (global external, regional external, cross-region internal, regional internal)
- Network Load Balancer (passthrough and proxy variants, external and internal)
- The legacy SSL Proxy and TCP Proxy products which have been absorbed into the load balancer modernization track.
Picking the wrong load balancer is the single most common provisioning mistake.
The global external Application Load Balancer terminates client connections at any Google edge POP, runs Cloud Armor and Cloud CDN at the edge, and routes to backends in any region using a single anycast frontend IP. This is the default for global web applications.
The regional external Application Load Balancer is a single-region equivalent that terminates inside one region and is appropriate when data residency or latency to backends requires it.
The internal Application Load Balancer is used inside a VPC, often as the frontend for a microservice mesh or as the target of a Private Service Connect attachment. It supports advanced traffic management features like header-based routing and weighted backend distribution. The cross-region internal Application Load Balancer extends this pattern across regions for active-active internal services.
Network Load Balancer comes in passthrough and proxy variants.
- The passthrough flavor preserves the client IP by forwarding packets at L4 without proxying, which is the right choice for non-HTTP protocols and for workloads that need the original source IP.
- The proxy flavor terminates the TCP connection and opens a new one to the backend, supporting global anycast and Cloud Armor for L4.
# Provision a global external Application Load Balancer with backend service
gcloud compute health-checks create http prod-web-hc \
--port=8080 --request-path=/healthz --check-interval=10s --timeout=5s
gcloud compute backend-services create prod-web-backend \
--global \
--protocol=HTTP \
--health-checks=prod-web-hc \
--load-balancing-scheme=EXTERNAL_MANAGED \
--enable-logging \
--logging-sample-rate=1.0
gcloud compute url-maps create prod-web-urlmap \
--default-service=prod-web-backend
gcloud compute target-https-proxies create prod-web-https-proxy \
--url-map=prod-web-urlmap \
--ssl-certificates=prod-web-cert
gcloud compute forwarding-rules create prod-web-fr \
--global \
--target-https-proxy=prod-web-https-proxy \
--ports=443 \
--load-balancing-scheme=EXTERNAL_MANAGED
Access to Google APIs and Google-managed services from a private VPC uses Private Google Access, Private Service Connect for Google APIs, or VPC Service Controls.
Private Google Access is enabled per subnet and lets VMs without external IPs reach *.googleapis.com over Google's internal network.
Private Service Connect for Google APIs replaces the private.googleapis.com and restricted.googleapis.com virtual IPs with a customer-controlled internal IP, which is useful when you need granular auditing or want to integrate with VPC Service Controls.
Decision Tree: Choosing a Load Balancer
📊 Limit: Default custom-mode VPCs allow up to 7,000 VM instances per VPC and 800 subnets per VPC. Backend services on global external Application Load Balancers support up to 50 backend services per URL map by default.
💡 Exam Trap: A global external Application Load Balancer requires a Premium Tier networking project; if the project is configured with Standard Tier as the default, the forwarding rule creation fails or downgrades to regional behavior. The exam tests this constraint indirectly through scenarios about global anycast and edge POP termination.
💡 Exam Trap: Health checks for load balancers come from documented Google ranges (35.191.0.0/16, 130.211.0.0/22 for most product variants); failing to allow these in firewall rules is the most common reason backends show as unhealthy despite the application being up.
⚠️ Anti-Pattern: Using a Network Load Balancer when the workload speaks HTTP and would benefit from L7 features like host- and path-based routing, Cloud Armor WAF, and Cloud CDN. A passthrough NLB is appropriate only when the protocol is not HTTP or when source IP preservation is mandatory.
Decision Anchor: Choose global external Application Load Balancer when you want a single anycast IP, edge security, and CDN integration. Choose regional internal Application Load Balancer when traffic stays inside the VPC and L7 features are needed. Choose passthrough Network Load Balancer when source IP must be preserved or the protocol is not HTTP. ---
