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
Which VPC component is a regional resource?
- The VPC network itself
- A subnet
- A VPC firewall rule
- 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.
Which statements about VPC networks and subnets are correct?
- A subnet exists in a single region
- One VPC network can have subnets in many regions
- Secondary ranges can be used for alias IP ranges
- A VPC network is confined to one region
- 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.
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.
