Skip to content

Preparing for corrupted or missing data before it happens

Preparing for data corruption and missing data on Google Cloud means designing pipelines and storage so bad or absent data is detected early and recovery is fast. Key controls span versioning, backups, validation checks, and dead-letter/error handling so downstream analytics are not silently poisoned by bad records.

1 · Learn the must-know

  • Enable Object Versioning on Cloud Storage buckets so overwritten or deleted source files can be restored, and pair this with lifecycle rules to manage version retention costs.
  • Use BigQuery time travel (default 7 days, configurable up to 7) and table snapshots to recover accidentally deleted or corrupted table data without a full backup restore.
  • Cloud SQL and Spanner support automated backups plus point-in-time recovery, which should be enabled and tested so corrupted transactional data can be rolled back to a known-good state.
  • Dataflow and Pub/Sub pipelines should route unparseable or schema-invalid records to a dead-letter topic/table rather than dropping them, preserving them for later inspection and reprocessing.
  • Validate data quality early using schema enforcement (e.g., BigQuery schema validation, JSON schema checks in Pub/Sub) and tools like Dataplex data quality tasks to catch missing or malformed fields before they propagate.
  • Idempotent, deduplicated pipeline design (using unique record IDs or Pub/Sub message ordering/exactly-once delivery) reduces the risk of missing data caused by retries or at-least-once delivery semantics.

2 · Check your understanding

Check this objectiveFree · always available

A BigQuery table receives a nightly incremental load from an upstream ETL pipeline. On day 4, engineers discover that the load run on day 1 inserted corrupted rows due to a schema mismatch in the source system, and no manual fix has been applied yet. The team wants to restore the table to its pre-corruption state using native BigQuery capabilities with minimal manual effort. What should they do?

Your objective map0 tried · 0 answered correctly · 67 untouched

What you have tried across GCP PDE's objectives, not a readiness score.

Designing data processing systems~22% of the exam0 of 17 tried
Ingesting and processing the data~25% of the exam0 of 11 tried
Storing the data~20% of the exam0 of 13 tried
Preparing and using data for analysis~15% of the exam0 of 11 tried
Maintaining and automating data workloads~18% of the exam0 of 15 tried

3 · Keep going