Exams / GCP-ADP / D1 Data Pipeline Orchestration
D1.1
Data Pipeline Orchestration (part 1 of 2)
- 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.
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") |
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
- https://cloud.google.com/bigquery/docs/external-data-drive
- https://cloud.google.com/bigquery/docs/connected-sheets
- https://docs.cloud.google.com/dataflow/docs/guides/job-builder
- https://cloud.google.com/dataflow/docs/overview
- https://cloud.google.com/dataflow/docs/guides/templates/provided/pubsub-to-bigquery
- https://cloud.google.com/workflows/docs/choose-orchestration
- https://docs.cloud.google.com/dataform/docs/overview
- https://cloud.google.com/storage/docs/pubsub-notifications
- https://docs.cloud.google.com/run/docs/triggering/storage-triggers
- https://docs.cloud.google.com/bigquery/docs/google-ads-transfer
- https://docs.cloud.google.com/looker/docs/scheduling-and-sending-dashboards
- https://cloud.google.com/pubsub/docs/flow-control
- https://docs.cloud.google.com/data-fusion/docs/concepts/overview
- https://docs.cloud.google.com/composer/docs/composer-3/troubleshooting-dags
- https://cloud.google.com/dataflow/docs/guides/logging
- https://cloud.google.com/bigquery/docs/remote-functions
- https://cloud.google.com/bigquery/docs/scheduling-queries