Orchestrating Complex Data Pipelines with Cloud Composer
Short answer
C Create directed acyclic graphs (DAGs) in Cloud Composer. Use the appropriate operators to connect to Cloud Storage, Spark, and BigQuery.
Question
Key Takeaways
Cloud Composer is the correct solution for orchestrating complex, dependent data pipelines in a fully managed manner. It leverages Apache Airflow's DAGs to coordinate diverse tasks across Cloud Storage, Spark, and BigQuery, unlike simpler schedulers or self-managed alternatives.
Expert Analysis
Cloud Composer (managed Apache Airflow) orchestrates complex task dependencies with DAGs for multi-step data pipelines. Cloud Scheduler (A) is for simple cron jobs. Dataflow (B) processes streaming/batch data. Pub/Sub (D) is messaging.
The scenario requires a fully managed system to orchestrate complex data pipelines involving heterogeneous components: Cloud Storage files, Apache Spark jobs, and BigQuery datasets. The key constraints are the complexity of dependencies, the need for scheduled execution in a specific order, and the requirement for a fully managed service. Cloud Composer is Google Cloud’s managed Apache Airflow service. Airflow uses Directed Acyclic Graphs (DAGs) to define workflows where tasks have explicit dependencies on one another. This makes it the ideal tool for coordinating multi-step processes that involve different technologies. Cloud Composer provides pre-built operators for interacting with Cloud Storage, BigQuery, and Dataproc (which runs Spark), allowing users to create robust pipelines without managing the underlying infrastructure.
Option A, Cloud Scheduler, is incorrect because it is designed for triggering HTTP-based requests or Pub/Sub messages at fixed intervals. It lacks the capability to define complex dependency graphs between disparate tasks. It cannot natively manage the state of a Spark job or ensure that a BigQuery query only runs after specific files have landed in Cloud Storage. It is suitable for simple cron-like triggers but fails the "complex tasks and dependencies" requirement.
Option B, Cloud Tasks, is incorrect because it is a distributed task queueing system focused on executing individual background jobs asynchronously. While it can schedule tasks, it does not provide a visual or programmatic way to model complex inter-task dependencies across different services like Spark and BigQuery. It is more suited for microservice communication rather than data pipeline orchestration.
Option D, Apache Airflow deployed on Google Kubernetes Engine (GKE), is technically capable of performing the required orchestration. However, the question explicitly specifies a "fully managed approach." Deploying Airflow on GKE requires the user to manage the Kubernetes cluster, the Airflow web server, scheduler, and workers. This introduces operational overhead and violates the constraint of using a fully managed service. Cloud Composer abstracts away this management layer, making it the superior choice when "fully managed" is a stated requirement.
The decision rests on recognizing that "fully managed" eliminates self-hosted solutions, while "complex dependencies" eliminates simple schedulers. Cloud Composer bridges this gap by offering the power of Airflow’s DAG-based orchestration within Google’s managed environment. This aligns with objective 3.1, which covers designing and implementing simple data pipelines using orchestration tools.
Official Reference
https://cloud.google.com/composer/docs
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question emphasizes 'fully managed' alongside 'complex dependencies,' immediately rule out self-hosted options (like running software on GKE) and simple schedulers (like Cloud Scheduler). Look for managed orchestration services that support DAGs or workflow definitions. In Google Cloud, Cloud Composer is the primary managed tool for this pattern, especially when integrating multiple distinct services.
Related Analysis
Practice All ADP Questions
Access 65 questions with complete answers and detailed explanations.
View Full ADP Practice Test →