professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise data platform processes daily transactions and telemetry data across multiple business domains in Google Cloud. Several downstream analytical pipelines (Finance P&L, Regional Operations, and Customer Insights) depend on a core transformed dataset produced by an upstream Dataflow pipeline.
Under the existing monolithic orchestration structure, intermittent failures in one analytical branch cause cascading pipeline delays across unrelated domains. The data engineering team must re-architect the orchestration to satisfy the following requirements:
Which orchestration design should the team implement in Cloud Composer?
Consolidate all ingestion and analytical workloads into a single master DAG, organizing each business domain within nested SubDagOperator blocks and transferring parameters between domains using Airflow XComs.
Extract the upstream pipeline into a dedicated standalone DAG using TaskGroup to visually organize internal steps, and use TriggerDagRunOperator with runtime parameters passed in the conf dictionary to trigger downstream domain DAGs.
Migrate the entire transformation and orchestration workflow to Google Cloud Workflows, executing Apache Beam data transformations natively within YAML workflow steps and holding batch states in memory.
Maintain a single monolithic DAG, implementing cross-branch synchronization using ExternalTaskSensor instances configured in poke mode and passing execution variables via the global Airflow Variables table.
Consolidate all ingestion and analytical workloads into a single master DAG, organizing each business domain within nested SubDagOperator blocks and transferring parameters between domains using Airflow XComs.
Extract the upstream pipeline into a dedicated standalone DAG using TaskGroup to visually organize internal steps, and use TriggerDagRunOperator with runtime parameters passed in the conf dictionary to trigger downstream domain DAGs.
This architecture establishes a modular, decoupled orchestration design in Cloud Composer (Apache Airflow). By separating shared data processing from downstream domain-specific transformations into independent DAGs, the workflow leverages TaskGroup for UI organization and TriggerDagRunOperator for cross-DAG event-driven coordination.
TriggerDagRunOperator allows the controlling upstream DAG to invoke downstream DAG runs programmatically while supplying dynamic configuration dictionaries via the conf parameter (e.g., conf={"batch_id": "12345", "ds": "2024-01-01"}). Downstream tasks can access these values dynamically using the dag_run.conf context variable.TaskGroup enables visual and structural grouping of related tasks (such as ingestion validation checks) in the Airflow UI while keeping all tasks within the same DAG execution graph, avoiding the scheduling deadlocks and resource constraints associated with legacy sub-DAGs.TaskGroup simplifies complex DAG graphs in the Airflow web interface with expandable/collapsible UI containers without altering runtime execution mechanics.conf payload cleanly delivers execution metadata at trigger time without relying on persistent database writes or bloated XCom storage.Migrating monolithic workflows into modular DAGs connected via TriggerDagRunOperator represents the Google Cloud recommended best practice for orchestrating fan-out data warehousing pipelines. It provides the highest degree of fault tolerance, operational clarity, and decoupled scalability.
Migrate the entire transformation and orchestration workflow to Google Cloud Workflows, executing Apache Beam data transformations natively within YAML workflow steps and holding batch states in memory.
Maintain a single monolithic DAG, implementing cross-branch synchronization using ExternalTaskSensor instances configured in poke mode and passing execution variables via the global Airflow Variables table.