Google Cloud · Networking

Virtual Private Cloud (VPC)

Global virtual networks with regional subnets, routes, peering and Shared VPC for connecting Google Cloud resources privately.

On the Google Cloud Associate Cloud Engineer exam listNetwork segmentationPrivate connectivityMulti-account

What it is and what problem it solves

A VPC network in Google Cloud is global: it spans every region, while each subnet belongs to one region and has a primary IP range plus optional secondary ranges (used for GKE Pods and Services). VMs in different regions of the same network communicate over internal IPs. Shared VPC lets a host project own the network while service projects deploy into its subnets; VPC Network Peering and Network Connectivity Center connect networks.

When to use it

  • Every workload that needs private networking: VMs, GKE, Cloud SQL private IP, serverless VPC egress.
  • Multi-region applications that need private connectivity without peering per region.
  • Central network control for many projects through Shared VPC.

When to avoid it

  • Auto mode networks in production: fixed ranges overlap across projects; use custom mode.
  • Peering meshes between many networks: peering isn't transitive; use Network Connectivity Center or Shared VPC.

Cost model

What you pay for

  • VPC networks themselves are free.
  • Egress between zones and regions and to the internet; VPC Flow Logs volume.

Where it is cost-efficient

Keeping chatty services in one zone or region; Private Google Access instead of NAT for Google APIs.

Where costs grow

Cross-region traffic between services; verbose flow logs.

Cost controls and common surprises

Place services close together, sample flow logs, and review network egress in billing exports.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Firewall rules and Cloud NGFW policies; Private Google Access and Private Service Connect for private API access.

What you configure

Use custom-mode networks with a planned IP space, Shared VPC for central control, and deny-by-default firewall policies.

Logging and monitoring

VPC Flow Logs and firewall rules logging in Cloud Logging.

Exam cues and common confusions

  • VPC is global; subnets are regional.
  • Central network team, many projects: Shared VPC; connect two networks: VPC Network Peering (non-transitive).
  • Subnet too small: expand its primary range (it can only grow).
  • Private VMs reaching Google APIs: Private Google Access.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake