Bitzu

Associate Cloud Engineer ยท VPC design and firewalls

VPC networks and subnets: global vs regional

Auto vs custom mode, regional subnets, global VPC scope, primary and secondary ranges, private Google access, creating a VPC with gcloud, setting up cloud networking for a new project.

Key points

  • A VPC network is global; its subnets are regional and carry the IP ranges.
  • Auto mode creates one subnet per region automatically (from 10.128.0.0/9).
  • Custom mode starts empty, so you choose regions and ranges.
  • A subnet has a primary range and optional secondary ranges (used for alias IPs).
  • Private Google Access is switched on per subnet so VMs without external IPs can reach Google APIs.

Source: https://docs.cloud.google.com/vpc/docs/subnets

Practice questions

Single choice

Which VPC component is a regional resource?

  1. The VPC network itself
  2. A subnet
  3. A VPC firewall rule
  4. The default gateway of the project
Show answer

Answer: B. A subnet

Subnets belong to one region and hold the IP ranges. The VPC network itself is global, so the other options are wrong about scope.

Select all that apply

Which statements about VPC networks and subnets are correct?

  1. A subnet exists in a single region
  2. One VPC network can have subnets in many regions
  3. Secondary ranges can be used for alias IP ranges
  4. A VPC network is confined to one region
  5. Custom mode creates a subnet in every region automatically
Show answer

Answer: A. A subnet exists in a single region, B. One VPC network can have subnets in many regions, C. Secondary ranges can be used for alias IP ranges

VPC networks are global, subnets are regional, and secondary ranges serve alias IPs. A VPC is not limited to one region, and custom mode never auto-creates subnets.

True or false

A VM that has no external IP address cannot reach Google APIs under any configuration.

Show answer

Answer: False

False. With Private Google Access enabled on the VM's subnet, resources without external IPs can reach supported Google APIs and services.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module