Storage & Databases
Exam guide§2.2, 3.2
The single most-tested storage skill: the exam hands you a workload and expects one product. Two spectrums - Storage (object, file, cache) and Databases (relational, document, wide-column, analytics) - and scenario matching is what gets tested. Classify the data shape first, THEN read the scale/consistency signals.
Relational, single region, MySQL/Postgres/SQL Server→Cloud SQL
Relational + global scale + horizontal + strong consistency→Spanner
High-performance Postgres (HTAP, 4x faster)→AlloyDB
Document / mobile / web app, real-time sync, offline→Firestore
Massive wide-column, time-series, IoT, > 1 TB, low latency→Bigtable
Analytics, data warehouse, SQL over huge datasets, BI→BigQuery
In-memory cache, sub-ms reads, session store→Memorystore
Watch the scale words. "Global", "horizontal scaling", "strong consistency at scale", "millions of QPS with SQL" mean Spanner, not Cloud SQL. Cloud SQL scales UP (bigger instance) and out only with read replicas - it does NOT shard writes across regions.
BigtableOperational NoSQL: low-latency single-row reads/writes, no SQL analytics.
BigQueryAnalytical warehouse: scans huge tables with SQL. NOT for high-throughput single-row lookups or transactional writes.
If the question says "analytics/reporting/dashboard", it's BigQuery.
"transactions", "JOINs", "schema", "ACID"→Relational (Cloud SQL / Spanner)
"flexible schema", "documents", "mobile sync"→Firestore
"time-series", "IoT", "petabytes", "single-key"→Bigtable
"data warehouse", "analytics", "ad-hoc SQL", "BI"→BigQuery
"reduce DB load", "sub-millisecond", "cache"→Memorystore