Google PDE: Workflow Orchestration and Pipeline Automation — 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

Workflow orchestration and pipeline automation coordinate data tasks across services so that ingestion, transformation, quality checks, and publishing happen reliably, securely, and cost‑effectively. In Google Cloud, orchestration must align with the execution model of each workload: scheduled batch, event‑driven stream, ad‑hoc, or long‑running jobs. The design goals are repeatability, idempotency, observability, least privilege, and safe promotion through environments.

Key choices:

The operating model emphasizes retries with bounded exponential backoff, timeouts, SLAs, catchup and backfills, idempotent task design for safe reruns, and robust failure handling with dead‑letter capture. Security is enforced via per‑pipeline service accounts, secrets isolation, parameterization, and least‑privilege IAM. CI/CD, infrastructure as code, and comprehensive telemetry complete a production‑ready approach.

Orchestration on Google Cloud: Tools and Patterns

Cloud Composer (Airflow)

Cloud Workflows, Cloud Scheduler, Cloud Run jobs, and event‑driven execution

Dataform: SQL workflows for BigQuery

Dataproc, Dataflow, and storage patterns

Reliability, Failure Handling, and Idempotency

Retries, timeouts, and backoff

Backfills, catchup, and failure handling

Idempotent task design and reruns

Troubleshooting and scalability

Security, Parameterization, Environments, and CI/CD

Parameterization and configuration management

Secrets, service accounts, and least privilege

CI/CD and infrastructure as code

Observability, Alerting, and Runbooks

Telemetry and alerting

Runbook design

Practical Problem Scenario

Acme Retail Analytics needs to ingest daily partner CSV drops that contain occasional malformed rows, transform and load valid data to BigQuery, and surface bad rows for investigation. They also want event‑driven enrichment for near‑real‑time pricing updates and safe promotion from dev to prod.

Approach:

  1. Storage and event triggers

    • Create a dedicated Cloud Storage bucket with object versioning and uniform bucket‑level access. Enable object finalize notifications to Pub/Sub via Eventarc.
    • Rationale: Object finalization is a reliable event to trigger downstream ingest; versioning supports reruns and audits.
  2. Batch ingest with dead‑letter handling

    • Use Cloud Composer to schedule a daily Airflow DAG at 02:00 with catchup enabled. The DAG launches a Dataflow batch job that parses CSVs, validates schema, and writes valid records to BigQuery using deterministic staging tables then MERGE into partitioned target tables. Route malformed/failed records to a BigQuery dead‑letter table.
    • Rationale: Dataflow scales parsing/validation; MERGE ensures idempotency; dead‑letter capture supports inspection without blocking the pipeline, matching the recommended pattern for malformed rows.
  3. Event‑driven enrichment

    • Deploy a Cloud Run job to perform lightweight enrichment for incremental pricing updates. Trigger it via Cloud Workflows listening to Pub/Sub messages from Eventarc when small update files arrive during the day.
    • Rationale: Serverless containers with Workflows provide low‑latency, low‑ops orchestration for small events while keeping heavy transforms in batch.
  4. Reliability controls

    • Configure retries with exponential backoff for transient failures in Dataflow and Cloud Run jobs, capping total retry time to the DAG SLA. Set per‑task execution timeouts and on_failure callbacks in Airflow; in Workflows, set max_doublings and max_retry_duration.
    • Rationale: Bounded backoff preserves SLAs and prevents runaway retries.
  5. Security and least privilege

    • Run each component under a dedicated service account: Composer orchestrator SA, Dataflow worker SA, Cloud Run job SA. Grant only required roles: GCS read on the ingest bucket to Dataflow, BigQuery dataEditor on target datasets, and Viewer on logs. Store secrets in Secret Manager and reference them at runtime.
    • Rationale: Enforces least privilege and isolates blast radius.
  6. Metadata‑driven orchestration

    • Maintain a BigQuery control table listing partner sources, file patterns, and target datasets. At DAG runtime, Airflow queries this table and uses dynamic task mapping to spawn per‑partner tasks.
    • Rationale: Adding a partner becomes a data change, not a code change, reducing deployment risk.
  7. Observability and alerting

    • Emit structured logs with run_id and partner_id. Create alerting policies for DAG SLA misses, Dataflow system lag, and non‑empty dead‑letter counts. For BigQuery inserts into the target table, configure a Cloud Logging sink with an advanced filter for that table to a Pub/Sub topic consumed by Acme’s monitoring tool.
    • Rationale: Fine‑grained alerts enable rapid triage without noise.
  8. CI/CD and promotion

    • Manage infrastructure (buckets, Pub/Sub, Eventarc, Composer, Workflows, BigQuery datasets) in Terraform. Use Cloud Build to validate Airflow DAG syntax, run unit tests, and deploy to a dev Composer environment. Promote to test and prod with parameterized configs and manual approval gates after Dataform assertions and integration tests pass.
    • Rationale: Declarative, repeatable deployments and safe promotion across environments.
  9. Runbook and recovery

    • Document steps to replay a specific date: restore CSV from object versioning, rerun the Dataflow job for that partition, MERGE results, and review DLQ records. Include a “fixed dataset replay” procedure to isolate transformation bugs if discrepancies arise.
    • Rationale: Idempotent design and documented recovery streamline partial failure remediation.

Data Ingestion · All domains · Machine Learning

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