Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

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

Reliable data

Professional Data Engineer · Lesson 3 of 23 · 15:52

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: preparing and cleaning data with Dataform, Dataflow, Cloud Data Fusion, and Gemini, validating it with data quality scans and assertions, choosing between ACID guarantees and availability (Spanner, Cloud SQL, BigQuery), and disaster recovery targets. 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.

A report nobody trusts

Last month, Cymbal Mobility's finance report counted some trips twice, and a few scooters seemed to ride across the sea. Nobody noticed until the board did. Data that people cannot trust is worse than no data, so this lesson is about reliable data: clean, checked, and able to survive a failure.

Preparing and cleaning data

Choose the cleaning tool by the team and the data. Dataform runs SQL workflows inside BigQuery, with dependencies between tables, version control, and tests, which suits analysts who think in SQL. Dataflow runs Apache Beam code, in batch or streaming, for large or complex cleaning, like parsing raw events as they arrive. Cloud Data Fusion builds pipelines visually, with ready-made connectors, for teams that prefer not to write code. And Gemini in BigQuery can generate SQL from a prompt in plain language, or explain a query, but a person still reviews that code before it runs in production.

Watching the pipelines

Typical cleaning steps drop repeated rows, standardize formats, like dates and currencies, handle missing values, and filter impossible values, like a negative distance. Then an orchestrator, like Managed Service for Apache Airflow, runs each step in order, and retries it when it fails. And Cloud Monitoring alerts the team when a job fails, or when a table stops getting fresh data, before users notice.

Validating data

Validation checks data against rules, before people use it. A data quality scan in Knowledge Catalog, the catalog once called Dataplex Universal Catalog, applies rules to a table, like a range, a non-null check, a set of allowed values, a pattern, uniqueness, or your own SQL, each with a passing threshold. Data profiling shows the shape of a column: its share of nulls, its distinct values, its minimum and maximum. Dataform assertions are checks inside a workflow: when one fails, the workflow stops, so bad data never reaches the tables that depend on it. And a pipeline can send bad records to a separate table, for review, instead of dropping them.

ACID or availability

ACID means atomicity, consistency, isolation, and durability: a transaction happens completely or not at all, and every reader sees a valid state. Payments need it. Spanner offers ACID transactions with strong consistency at global scale, and up to five nines of availability in a multi-region configuration. Cloud SQL and AlloyDB offer ACID transactions within a region, and BigQuery supports multi-statement transactions for analytical changes. Bigtable only guarantees atomic changes within a single row, and its replicated clusters are eventually consistent, which is fine for vehicle positions, but not for money.

Recovering from failures

Disaster recovery starts with two targets: the recovery point objective, how much data you can lose, and the recovery time objective, how long you can be down. BigQuery already stores data across zones in a region, and a multi-region location goes further. Its managed disaster recovery, with the Enterprise Plus edition, replicates datasets to a second region, and fails over with a hard failover, at once, or a soft failover, after replication catches up. Cloud Storage dual-region buckets can use turbo replication, which copies new objects within fifteen minutes. And a plan that was never tested is only a hope.

Recap

Let's recap. Dataform cleans data with SQL in BigQuery, Dataflow with Beam code, and Cloud Data Fusion visually, while Gemini drafts SQL that people review. Orchestration retries steps, and monitoring alerts on failures and stale tables. Data quality scans and profiling check tables, and Dataform assertions stop a workflow before bad data spreads. Spanner gives ACID and global availability, while Bigtable is atomic per row and eventually consistent across clusters. And disaster recovery sets a recovery point and a recovery time, then replicates, fails over, and tests.

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. The analysts only write SQL. They want to build transformations inside BigQuery, with dependencies between tables, version control, and tests. Which tool fits best?

    • Dataflow with Apache Beam pipelines
    • Dataform
    • Cloud Data Fusion
    • Scheduled queries in BigQuery
    Show the answer

    Dataform

    Dataform runs SQL workflows in BigQuery, with dependencies, version control, and tests. “Dataflow with Apache Beam pipelines” would ask the analysts to write Apache Beam code. “Cloud Data Fusion” only builds visual pipelines, without the SQL workflow the analysts want. And “Scheduled queries in BigQuery” only schedules single queries, without dependencies or tests.

  2. The daily trips table must never be published when any trip has a negative distance. The transformation runs in Dataform. What is the most reliable way to enforce this?

    • A dashboard showing negative distances
    • A data profile of the distance column
    • A Dataform assertion on the distance
    • A step that silently sets negative distances to zero
    Show the answer

    A Dataform assertion on the distance

    A Dataform assertion fails the workflow, so the tables that depend on it are not built with bad rows. “A dashboard showing negative distances” would only show the problem after the table is published. “A data profile of the distance column” only describes the column, without stopping anything. And “A step that silently sets negative distances to zero” would change the data silently, and hide the real problem.

  3. The payment ledger needs ACID transactions, strong consistency, and must keep running when a whole region fails. Which database fits?

    • Spanner, multi-region configuration
    • Cloud SQL, one regional instance
    • Bigtable, two replicated clusters
    • BigQuery, in a multi-region dataset
    Show the answer

    Spanner, multi-region configuration

    Spanner in a multi-region configuration gives ACID transactions, strong consistency, and survives a regional failure. “Cloud SQL, one regional instance” is consistent within one region, but a single Cloud SQL instance does not survive a regional outage by itself. “Bigtable, two replicated clusters” only makes single-row changes atomic, and its replicas are eventually consistent. And “BigQuery, in a multi-region dataset” would answer analytical queries, but it is not a database for live payments.