VPC basics
A VPC network is global, but subnets are regional and span all zones in that region.
VPC networks come in two flavours: auto mode (one subnet per region, created automatically, /20 ranges) and custom mode (you define subnets and ranges yourself). Custom mode is best practice for production.
Subnets have a primary IP range plus optional secondary ranges, used for GKE alias IPs (pods and services).
Firewall rules are stateful, apply at the VPC level (not per subnet), and use priority numbers from 0-65535 (lower number = higher priority). Default rules: implied allow egress, implied deny ingress.
Connecting networks
- VPC Peering: private RFC 1918 connectivity between two VPCs, no transitive peering, works across projects/orgs.
- Shared VPC: a host project shares subnets with service projects, letting centrally managed networking span teams - common exam scenario for centralised IAM/network control.
- Cloud VPN: encrypted tunnel over the public internet, quick to set up, up to 3 Gbps per tunnel.
- Cloud Interconnect: Dedicated (10 or 100 Gbps direct connection) or Partner (50 Mbps-50 Gbps via a partner) for private, high-throughput, low-latency links to on-prem.
- Cloud NAT lets private instances reach the internet outbound without external IPs; it does not allow inbound connections.
Load balancing
Know the split: global external load balancers (HTTP(S), SSL Proxy, TCP Proxy) front global backends and need Premium Tier networking; regional load balancers (Internal HTTP(S), Internal TCP/UDP, external regional Network LB) stay within one region.
HTTP(S) Load Balancing is Layer 7 and can route by URL path/host; Network Load Balancing is Layer 4 (pass-through).
Storage services and classes
Cloud Storage buckets are globally unique by name and hold objects, not filesystems. Four storage classes by access pattern, not performance: Standard (frequent access), Nearline (accessed <1x/month, 30-day minimum), Coldline (<1x/quarter, 90-day minimum), Archive (<1x/year, 365-day minimum). Early deletion before the minimum duration still incurs the full minimum-duration charge.
Use Object Lifecycle Management rules to auto-transition or delete objects by age/class/version.
Bucket location can be region, dual-region, or multi-region - multi-region gives higher availability, region gives lowest latency to a single area.
Persistent Disk vs Filestore vs Cloud SQL
Persistent Disk (zonal or regional) attaches to Compute Engine VMs like a virtual hard drive - zonal PD survives one zone only, regional PD replicates across two zones for HA.
Filestore provides managed NFS file storage for multiple VMs needing shared file access.
Cloud SQL is managed relational (MySQL/PostgreSQL/SQL Server); Cloud Spanner is for globally distributed, horizontally scalable relational needs; Firestore/Bigtable are NoSQL (Firestore = document/mobile-web, Bigtable = huge analytical/time-series workloads).
Common exam traps
- Confusing IAM 'roles/storage.objectViewer' (bucket-level read) with ACLs (object-level, legacy, avoid unless required).
- Forgetting Cloud NAT needs a Cloud Router in the same region.
- Picking Nearline for daily-access data (wrong - use Standard) or Archive for monthly backups (too aggressive - use Coldline).
- Assuming firewall rules are per-subnet; they are actually per-VPC network with target tags/service accounts scoping them.
Are Cloud Storage buckets regional or global in namespace?
Bucket names are globally unique across all of Google Cloud, though the bucket's data location can be region, dual-region, or multi-region
tap to reveal
What is the minimum storage duration for Nearline storage?
30 days - early deletion still bills for the full 30 days
tap to reveal
What is the minimum storage duration for Coldline storage?
90 days
tap to reveal
What is the minimum storage duration for Archive storage?
365 days
tap to reveal
What does Cloud NAT allow and not allow?
Allows private instances outbound internet access; does not allow unsolicited inbound connections
tap to reveal
What extra resource does Cloud NAT require in the same region?
A Cloud Router
tap to reveal
Difference between zonal and regional Persistent Disk?
Zonal PD lives in one zone only; regional PD synchronously replicates across two zones for HA
tap to reveal
What is Filestore used for?
Managed NFS file storage shared across multiple Compute Engine VMs
tap to reveal
Is VPC Peering transitive?
No - if VPC A peers with B and B peers with C, A cannot reach C through B
tap to reveal
What is Shared VPC used for?
Letting a host project centrally share subnets/networking with multiple service projects across teams
tap to reveal
OSI layer of HTTP(S) Load Balancing vs Network Load Balancing?
HTTP(S) LB is Layer 7 (application, can route by URL/host); Network LB is Layer 4 (pass-through)
tap to reveal
Bandwidth range of Dedicated Interconnect?
10 Gbps or 100 Gbps per connection, direct to Google's network
tap to reveal
Bandwidth range of Partner Interconnect?
50 Mbps up to 50 Gbps, via a supported service partner
tap to reveal
Default priority ordering rule for VPC firewall rules?
Lower priority number = evaluated first / higher precedence, range 0-65535
tap to reveal
Which storage class suits data accessed a few times a year, like yearly compliance backups?
Archive storage class
tap to reveal