PDE Maintaining and Automating Data Workloads Practice Question
Your team runs a Cloud Composer (Airflow) environment that executes a nightly BigQuery ELT DAG. A downstream task must only run after an upstream task that loads a partitioned table completes, and you want the downstream task to wait for the load's completion signal without polling BigQuery repeatedly. Which Airflow mechanism should you implement to coordinate these tasks within the DAG?
⚠ Common exam trap
The trap here is assuming a sensor or XCom is needed when a simple dependency edge already enforces ordering within the same DAG.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Define a direct downstream dependency (loader >> downstream) so Airflow's scheduler marks the downstream task runnable only after the loader task succeeds.
A direct dependency edge is the canonical Airflow way to sequence tasks inside one DAG: the scheduler keeps the downstream task in a waiting state until the upstream load succeeds. Sensors and XComs serve other purposes and would add complexity or incorrect semantics here. The dependency edge provides the required completion gating with no polling of BigQuery.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Define a direct downstream dependency (loader >> downstream) so Airflow's scheduler marks the downstream task runnable only after the loader task succeeds.
Why this is correct
In Airflow, a dependency edge makes the scheduler hold the downstream task until the upstream task reaches a successful terminal state. This is the native, no-polling coordination mechanism inside a single DAG, exactly matching the requirement that the downstream task wait for the load's completion signal without repeatedly querying BigQuery.
- ✗
Use a task dependency with an ExternalTaskSensor pointed at the loader task's DAG and task ID, configured with the correct execution_delta.
Why it's wrong here
ExternalTaskSensor waits on a task in a different DAG, not within the same DAG. Since the loader and downstream task live in the same nightly DAG, this sensor would look for an external DAG and fail or never resolve correctly. Within a single DAG, a plain dependency edge already enforces ordering, so this is the wrong tool for the scenario.
- ✗
Set the loader task's trigger_rule to all_done and add a dependency edge so the downstream task runs immediately after the loader reaches any terminal state.
Why it's wrong here
The all_done trigger rule allows the task to run even when the upstream task failed or was skipped, which is the opposite of the required guarantee. The scenario demands that the downstream task run only after a successful load. Using all_done plus an edge would let the downstream task proceed on failure, corrupting downstream results, so this is incorrect.
- ✗
Use an XCom to push a completion flag from the loader task and have the downstream task pull it via xcom_pull, combined with a trigger rule of all_success on the dependency edge.
Why it's wrong here
XComs only persist small metadata and do not themselves gate scheduling; using xcom_pull still requires the downstream task to already be scheduled. The all_success trigger rule governs whether a task runs based on upstream states, but XComs alone do not create a wait-for-signal coordination pattern here, so this does not reliably sequence the load and the downstream task as described.
About these practice questions
One of 747 original PDE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This PDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PDE exam.