GCP - Associate Data Practitioner Study Guide

    3: Data Pipeline Orchestration

    This chapter covers the third stage of the analytics platform on Google Cloud: turning the ingested and analyzed data into pipelines that run on a predictable cadence. It walks through the selection of a transformation engine, the choice between ETL and ELT, the assembly of a basic pipeline from primitives, and the scheduling, monitoring, and event triggering services that keep the pipeline operating without manual intervention.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Select a data transformation tool (Dataproc, Dataflow, Cloud Data Fusion, Cloud Composer, Dataform) based on business requirements.
    • Evaluate use cases for ELT and ETL on Google Cloud.
    • Choose the products required to implement a basic transformation pipeline.
    • Create and manage scheduled queries with BigQuery, Cloud Scheduler, and Cloud Composer.
    • Monitor a Dataflow pipeline using the Dataflow job UI.
    • Review and analyze logs in Cloud Logging and Cloud Monitoring.
    • Select a data orchestration solution among Cloud Composer, scheduled queries, Dataproc Workflow Templates, and Workflows.
    • Identify use cases for event-driven data ingestion from Pub/Sub to BigQuery.
    • Use Eventarc triggers in event-driven pipelines that involve Dataform, Dataflow, Cloud Functions, Cloud Run, and Cloud Composer.

    Executive Summary

    • Transformation engines fall into four buckets on Google Cloud: in-warehouse SQL (Dataform, scheduled queries), open-source clusters (Dataproc on Hadoop and Spark), unified Apache Beam (Dataflow for batch and streaming), and visual code-free pipelines (Cloud Data Fusion). Cloud Composer is the orchestrator that stitches any of them together.
    • ELT pushes raw data into BigQuery first and transforms it with SQL inside the warehouse. ETL transforms upstream in Dataflow, Dataproc, or Cloud Data Fusion before the data lands. The choice is driven by where the transformation logic is cheapest and easiest to maintain.
    • Scheduling spans four layers: the dataset-scoped BigQuery scheduled query, the cron-style Cloud Scheduler trigger, the DAG-based Cloud Composer (Apache Airflow) workflow, and the lightweight serverless Workflows service for short orchestration steps.
    • Monitoring relies on Cloud Logging for ad hoc forensic analysis and on Cloud Monitoring for metric-based alerts. The Dataflow job UI surfaces the execution graph, autoscaling history, worker metrics, and stage-level throughput needed to debug stuck jobs.
    • Event-driven ingestion replaces polling with reaction. Pub/Sub subscriptions write directly to BigQuery, and Eventarc routes Cloud Storage finalize events, Audit Log events, and direct Pub/Sub messages to Dataform, Dataflow, Cloud Functions, Cloud Run, or Cloud Composer.

    Assumptions

    • The reader has worked through Chapter 1 (ingestion and storage) and Chapter 2 (analysis, dashboards, and BigQuery ML). Terms such as bq load, materialized view, scheduled query, Storage Write API, slot, BigQuery edition, and remote model carry the meaning defined there.
    • Region examples use us-central1 and the multi-region US. All names (datasets, buckets, jobs) are fictional and use the prefix analytics_ or acme_ to avoid collision with real Google Cloud resources.
    • Costs and quotas reflect the published Google Cloud documentation values for the services discussed. When a quota is adjustable per project, this is noted explicitly.
    • The orchestration discussion treats batch and micro-batch as the default cadence. Sub-second streaming patterns (windowing, watermarks, triggers in Apache Beam) belong to a deeper Dataflow specialization and are scoped down to the level the exam requires.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account
    10. Free with account