All exams← All Google Associate Cloud Engineer notes

Networking & storage: Google Associate Cloud Engineer revision notes

Revision notes

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.

Key facts

Flashcards

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
Practice questions

Networking & storage: 5 practice questions

Q1. In Google Cloud VPC, what is the key difference between auto mode and custom mode subnet creation?
  • A.  Auto mode automatically creates one subnet per region with predefined IP ranges, while custom mode requires you to manually define each subnet's region and IP range
  • B.  Auto mode restricts a VPC to a single region, while custom mode allows multiple regions
  • C.  Auto mode subnets cannot be modified after creation, while custom mode subnets can always be resized
  • D.  Auto mode is only available for Shared VPC host projects, while custom mode is for standalone projects
Show answer & explanation
✓ Answer: A. Auto mode automatically creates one subnet per region with predefined IP ranges, while custom mode requires you to manually define each subnet's region and IP range
Auto mode VPC networks create one subnet in each region automatically using a predefined /20 range from 10.128.0.0/9; custom mode networks start with no subnets and require the admin to create each subnet manually, choosing region and CIDR range. Both modes support resizing (expanding) subnets and work across multiple regions, so those aren't the distinguishing factors.
Q2. Two firewall rules in the same VPC network both match the same traffic: one has priority 1000 allowing the traffic and another has priority 500 denying it. Which rule takes effect?
  • A.  The priority 1000 allow rule, because higher priority numbers are evaluated first
  • B.  The priority 500 deny rule, because lower priority numbers indicate higher precedence
  • C.  The rule closest to the top of the console list takes effect regardless of priority number
  • D.  Both rules apply simultaneously, and the traffic is logged but not blocked
Show answer & explanation
✓ Answer: B. The priority 500 deny rule, because lower priority numbers indicate higher precedence
GCP firewall rule priority uses a numeric scale where LOWER numbers mean HIGHER priority (0 is highest), so the priority 500 deny rule wins over the priority 1000 allow rule. This is a common point of confusion because it's the opposite of "bigger number = more important."
Q3. By default, every VPC network in Google Cloud includes two implied firewall rules that cannot be deleted. What do they do?
  • A.  Implied rules deny both ingress and egress traffic until the administrator creates an allow rule
  • B.  Implied rule denies all ingress traffic and implied rule allows all egress traffic
  • C.  Implied rules allow ingress only from the 10.0.0.0/8 private range and deny all egress
  • D.  Implied rules allow all ingress and egress traffic from any source until custom rules are added
Show answer & explanation
✓ Answer: B. Implied rule denies all ingress traffic and implied rule allows all egress traffic
Every VPC has two implied rules at the lowest priority (65535): implied deny for all ingress traffic and implied allow for all egress traffic. Administrators typically add explicit allow-ingress rules for needed traffic (e.g., SSH, HTTP) since nothing is allowed in by default.
Q4. A company stores compliance archives it must retain for 7 years and expects to access them at most once a year. Which Cloud Storage class minimizes cost, and what minimum storage duration charge applies?
  • A.  Archive Storage, with a 365-day minimum storage duration
  • B.  Coldline Storage, with a 90-day minimum storage duration
  • C.  Standard Storage, with no minimum storage duration
  • D.  Nearline Storage, with a 30-day minimum storage duration
Show answer & explanation
✓ Answer: A. Archive Storage, with a 365-day minimum storage duration
Archive Storage is the lowest-cost, lowest-availability class, intended for data accessed less than once a year, and carries a 365-day minimum storage duration charge. Nearline (30-day) and Coldline (90-day) minimums are for less-cold access patterns, and using them for annual access would cost more overall.
Q5. Which of the following is a valid Cloud Storage Object Lifecycle Management condition that can trigger an action such as deleting or changing the storage class of an object?
  • A.  The bucket's total storage exceeds a specified size in GB
  • B.  The object's age exceeds a specified number of days since creation
  • C.  The object's owner has not logged into the project in 90 days
  • D.  The object has been accessed fewer than 3 times in the last month
Show answer & explanation
✓ Answer: B. The object's age exceeds a specified number of days since creation
Lifecycle rules support conditions like Age (days since object creation), CreatedBefore, IsLive, and NumberOfNewerVersions, but not access-count or bucket-size aggregate conditions or owner login activity. Age is the most common condition used to transition or delete aging objects.
Test yourself
See the Google Associate Cloud Engineer page

More Google Associate Cloud Engineer topics