↑ ↓ to move, Enter to open, Esc to close

    GCP-ADPAssociate Data Practitioner

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    Exams / GCP-ADP / D1 Data Pipeline Orchestration

    D1.1

    Data Pipeline Orchestration (part 1 of 2)

    • 2 min read
    • 6 sections
    • 20 questions
    • Free preview
    • Exam domain: Data Pipeline Orchestration
    You are reading a free preview. The rest of the GCP-ADP course unlocks with an Exam pass or All access.See plans

    Choosing the right pipeline service

    Need Service Why
    Streaming or batch transforms in code (Apache Beam, Python) Dataflow Reads from Pub/Sub, transforms, writes to BigQuery
    Visual, no-code Dataflow Dataflow job builder "The job builder is a visual UI for building and running Dataflow" pipelines
    Pub/Sub → BigQuery with minimal effort Google-provided Dataflow template Streaming template, optional JavaScript UDF to transform messages
    Low-code visual ETL from many sources Cloud Data Fusion Visual pipeline designer with source, transform and sink plugins
    Existing Spark scripts Dataproc (now "Managed Service for Apache Spark") Run Spark without rewriting
    SQL transformations with Git, modularity, assertions Dataform SQLX + JavaScript, assertion queries test data quality
    Dependency-ordered scheduled workflows over GCS, Spark, BigQuery Cloud Composer (managed Apache Airflow) DAGs define order, schedule, retries
    SaaS data (Google Ads...) into BigQuery on a schedule + backfill BigQuery Data Transfer Service Managed, low-code
    Recurring SQL in BigQuery Scheduled queries Run history on the Scheduled queries page

    Composer is now branded "Managed Service for Apache Airflow" in the docs; exam questions still say Cloud Composer.

    Streaming pipeline from Pub/Sub through Dataflow to BigQuery and Looker

    ETL vs ELT

    • ETL: transform before loading (Dataflow, Data Fusion, Dataproc). Use it when data must be cleaned or enriched before storage.
    • ELT: load raw data first, then transform inside BigQuery (Dataform, scheduled queries).

    Event-driven file ingestion

    Cloud Storage can emit an OBJECT_FINALIZE event when a new object is created, through Pub/Sub notifications or Eventarc (google.cloud.storage.object.v1.finalized).

    Requirement Pick
    Load each small file as-is, minimal cost Cloud Run function triggered by Cloud Storage
    Clean, dedupe, enrich, then load Pub/Sub notification → Dataflow streaming
    Fixed hourly batch Composer DAG (not "on arrival")

    Cloud Storage file arrival to BigQuery

    Orchestration and recovery

    • Cloud Scheduler only triggers; Cloud Tasks queues asynchronous tasks; neither manages dependencies.
    • In Composer/Airflow, task state is kept per task. After fixing a failed stage, clear that task so it (and downstream tasks) rerun without redoing finished stages.

    Sheets, Looker and other integrations

    • Google Sheets → BigQuery: external table using the Drive URI. BigQuery → Sheets: Connected Sheets, which can schedule a refresh.
    • Looker schedules can run as the recipient so each person's user attributes/access filters apply to one schedule.
    • BigQuery remote functions (backed by Cloud Run or Cloud Run functions) let SQL call APIs such as Cloud Translation; combine with a scheduled query.

    Operating and troubleshooting

    Problem First step
    Failed Dataflow job Dataflow Jobs page → job logs and worker logs
    Intermittent Dataflow failures Cloud Logging for errors + Cloud Monitoring for CPU/memory
    Failed BigQuery scheduled query Scheduled queries page → run details
    Pub/Sub subscriber misses ack deadline during spikes Subscriber flow control

    Exam traps

    • Python skills + ETL engine: Dataflow (Beam); Composer is Python too but only orchestrates (QUESTION: ambiguous).
    • Existing Spark code: Dataproc, not Dataflow.
    • A BigQuery subscription loads messages without transformation before load.
    • Retrying, dead-lettering or seeking does not fix overloaded subscribers; flow control does.
    • Google Ads to BigQuery: Data Transfer Service handles both daily runs and backfill; no Composer needed.
    • Composer is for complex dependencies, not simple file loads.

    Docs

    The rest of this chapter is part of the GCP-ADP premium course

    Unlock every chapter, all 103 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters