Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Data Engineer

Choosing a storage system

Professional Data Engineer · Lesson 11 of 23 · 1:21:13

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Professional Data Engineer exam, on the official exam guide. In this lesson: access patterns, then BigQuery, Cloud Storage, Cloud SQL, AlloyDB, Spanner, Bigtable, Firestore, and Memorystore, and when each one fits. Includes three original practice questions, with Cymbal Mobility, a fictional ride-hailing and scooter company, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Five kinds of data

Cymbal Mobility stores very different data. Analysts scan years of trips, the app reads each scooter's latest position thousands of times a second, and payments need relational transactions on two continents. Rider profiles sync to the mobile app, and session tokens must be read in under a millisecond.

Access patterns

Start from how the data is used, not from a product list. Is it structured, semi-structured, or unstructured files? Do readers scan large ranges for analytics, or look up single rows by key? How fast must writes and reads be, at what volume, and do you need transactions across rows, or across regions? And how much data is there, and how long must you keep it?

Analytics and objects

BigQuery is the serverless warehouse for analytics: SQL over terabytes or petabytes, with storage and compute separate. It is not built for an application that updates single rows, many times a second. Cloud Storage holds objects of any format and size, like raw files, images, or backups, and it is the base of a data lake. Lakehouse, formerly BigLake, lets BigQuery and open source engines share tables in open formats on Cloud Storage, as lesson fourteen shows.

Relational databases

For applications that need SQL and transactions, choose a relational database. Cloud SQL runs managed MySQL, PostgreSQL, or SQL Server, for a regional application of moderate size. AlloyDB for PostgreSQL is fully compatible with PostgreSQL, faster, and has a columnar engine that runs analytical queries on current transactional data. Spanner scales reads and writes horizontally, keeps strong consistency across regions, and offers up to ninety-9.9 nine nine percent availability. Choose Spanner when one relational database must serve several continents, or outgrow a single machine.

NoSQL and in-memory

Bigtable is a wide-column NoSQL database for huge volumes at low latency, like time series and sensor data, and it works with the HBase API. Its rows are sorted by row key, so design the key around your reads, and avoid keys that start with a timestamp, which send all new writes to the same place. Firestore is a serverless document database for web and mobile apps, with real-time sync, and MongoDB compatibility. Memorystore runs Valkey, Redis, or Memcached in memory, for sub-millisecond caching and sessions. And remember: Bigtable is not for SQL analytics, and BigQuery is not for millisecond lookups by key.

Recap

Let's recap. Start from access patterns: structure, scans or lookups, latency, volume, transactions, and retention. BigQuery is for SQL analytics at scale, and Cloud Storage holds objects and the data lake. Cloud SQL serves regional relational apps, AlloyDB adds PostgreSQL performance and analytics, and Spanner scales relational data across regions with strong consistency. Bigtable serves huge volumes with low latency by row key, Firestore serves app documents, and Memorystore caches in memory. Design the row key around your reads, and never start it with a timestamp.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Analysts must run SQL aggregations over five years of trips, several terabytes, with no servers to manage. Which service fits?

    • BigQuery
    • Cloud SQL for PostgreSQL
    • Bigtable
    • Memorystore for Valkey
    Show the answer

    BigQuery

    BigQuery is the serverless warehouse built for SQL analytics over large data. “Cloud SQL for PostgreSQL” is a relational database for applications, not for scanning terabytes. “Bigtable” serves fast lookups by key, without SQL analytics at this scale. And “Memorystore for Valkey” keeps small data in memory, for caching.

  2. Payments must be written in Europe and in North America, into one relational database, with strong consistency and no downtime for maintenance. Which service fits?

    • Cloud SQL, with a read replica in the other region
    • Bigtable, with replication between regions
    • Spanner, in a multi-region configuration
    • AlloyDB for PostgreSQL, in one region
    Show the answer

    Spanner, in a multi-region configuration

    Spanner is relational, scales across regions, and keeps strong consistency everywhere. “Cloud SQL, with a read replica in the other region” would only accept writes in one region, and its replica would only serve reads. “Bigtable, with replication between regions” is NoSQL, and its replication is eventually consistent. And “AlloyDB for PostgreSQL, in one region” runs in one region, so the other continent would depend on a distant database.

  3. The app reads each scooter’s latest position by scooter ID, in milliseconds, while fifty thousand scooters write every few seconds. Which design fits?

    • Bigtable, with the timestamp first in the row key
    • Bigtable, with the scooter ID first in the row key
    • BigQuery, with a table partitioned by day
    • Cloud Storage, with one file per position
    Show the answer

    Bigtable, with the scooter ID first in the row key

    Bigtable serves fast reads and writes at this volume, and a key that starts with the scooter ID spreads writes, and keeps each scooter's rows together. “Bigtable, with the timestamp first in the row key” would send all new writes to the same place, because timestamps follow each other. “BigQuery, with a table partitioned by day” is built for analytics, not for millisecond lookups by key. And “Cloud Storage, with one file per position” would create millions of tiny files, with no fast lookup.