Google PDE: Data Storage, Lakes and File Formats — Study Guide

Part of the Google Professional Data Engineer — Study Guide. Practice with verified answers in the Google exam hub, or take timed practice tests on ExamRoll.io.

Overview

Data storage on Google Cloud spans raw object storage, curated data lakes, and analytics-optimized formats. Building reliable, governed, and performant lakes requires careful choices in storage classes, bucket settings, locations, file formats, table layout, and lifecycle. This section details design trade-offs, failure modes to avoid, and patterns that align with BigQuery, Spark, and streaming pipelines at scale.

Cloud Storage foundations: classes, buckets, consistency, and lifecycle

Cloud Storage is the durable, highly available foundation for raw and curated files.

Unified lake governance with BigLake and Dataplex

BigLake and Dataplex standardize security and governance across files and tables.

File formats, compression, and query behavior

Choosing the right format has first-order effects on cost and performance.

Layout, partitioning, performance engineering, residency, and migration

Practical Problem Scenario

Acme Retail receives daily CSV drops from a logistics partner into a regional Cloud Storage bucket. Files occasionally contain malformed rows. Acme must land, validate, convert to an analytics-ready format, and load into BigQuery for near-real-time dashboards, while retaining bad rows for inspection and enforcing governance.

Approach:

  1. Land and govern raw data in Dataplex

    • Create a Dataplex lake with a raw zone asset mapped to gs://acme-raw/logistics/.
    • Rationale: Centralized governance, metadata, and lineage. Enforce IAM at the zone level and tag sensitive fields with policy tags for downstream enforcement.
  2. Enforce lifecycle and retention

    • Apply a bucket retention policy of 30 days and enable object versioning on acme-raw.
    • Rationale: Protects against accidental overwrite/delete from the partner; short retention balances cost and recoverability. Versioning facilitates rollback of bad deliveries.
  3. Validate and ingest with a Dataflow batch pipeline

    • Trigger a daily Dataflow job on object finalize notifications. Read CSV with schema and per-record validation; write valid records to BigQuery staging (partitioned by event_date) and route parse/validation errors to a dead-letter BigQuery table.
    • Rationale: Dataflow provides scalable parallel parsing and robust dead-letter handling so analysts can inspect bad rows. This mirrors best practice for heterogeneous CSV quality.
  4. Compact and convert to Parquet in curated zone

    • The same pipeline writes validated data to gs://acme-curated/logistics/date=YYYY-MM-DD/ as Parquet files sized ~256–512 MB.
    • Rationale: Parquet enables column pruning and predicate pushdown in BigQuery and Spark, lowering scanned bytes and improving latency; compaction mitigates small-file overhead from the partner’s delivery pattern.
  5. Expose governed analytics via BigLake

    • Create a BigLake external table over the curated Parquet path with Hive auto-partitioning; apply column-level policy tags and row access policies for partner-specific filters.
    • Rationale: Uniform fine-grained access across BigQuery and Spark with centralized audit. Partition pruning reduces scan costs on date filters.
  6. Load critical aggregates to native BigQuery

    • For hot dashboards, run a scheduled BigQuery job that ingests the last N days from the curated Parquet external table into a native clustered, partitioned table.
    • Rationale: Native storage accelerates high-concurrency BI while the external BigLake table remains the governed system-of-record for broader access.
  7. Monitor and alert with Cloud Logging and Pub/Sub

    • Create a log sink filtering Dataflow and BigQuery load job outcomes to Pub/Sub; integrate with the monitoring tool for instant alerts on failures or elevated bad-row rates.
    • Rationale: Targeted, table-specific operational visibility without polling; supports SRE practices.
  8. Optimize storage class and residency

    • Keep curated Parquet in Standard for 14 days, transition to Coldline after 30 days via lifecycle rule; store both raw and curated buckets in the same region as BigQuery datasets to avoid egress.
    • Rationale: Balances hot read performance with cost. Co-location maintains compliance and minimizes latency and egress fees.
  9. Validate end-to-end quality

    • After each run, compare counts and hash aggregates between staging, curated external, and native BigQuery tables; quarantine anomalies.
    • Rationale: Early detection of schema drift or ingestion regressions; cryptographic or fingerprint hashes provide lightweight assurance without full re-scans.

This design provides resilient ingestion with dead-letter analysis, analytics-ready Parquet for efficient queries, centralized governance via Dataplex and BigLake, and cost-optimized lifecycle policies, all while adhering to least-privilege access and auditable operations.


Data Engineering Architecture and Design · All domains · BigQuery Analytics and Warehouse Engineering

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Google →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product