Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The Professional Data Engineer practice bank has 1,353 more like it. Try 10 free: instant score, no account.
An enterprise data engineering team is designing a daily data pipeline in Cloud Composer to orchestrate a multi-step analytical workflow. The pipeline must load external files from Cloud Storage into BigQuery, execute an aggregation query, spin up compute resources to process a large Apache Spark batch transformation job, clean up compute resources immediately after completion to minimize costs, and adhere to Google Cloud security best practices for identity and access management.
How should the team design this Cloud Composer orchestration workflow?
Cloud Composer is a fully managed workflow orchestration service built on Apache Airflow. When designing scalable, production-grade workflows, Airflow should act strictly as an orchestrator rather than a compute engine. Specialized Google Cloud operators (such as BigQuery and Dataproc operators) offload execution to managed Google Cloud data services while keeping the Composer environment lightweight and stable.
roles/composer.worker) role, augmented strictly with least-privilege permissions required for Dataproc, Cloud Storage, and BigQuery.This architecture leverages the decoupled execution model native to Google Cloud: Cloud Composer handles scheduling and dependency management, while BigQuery and Dataproc scale independently to handle heavy data processing workloads.
This approach uses general-purpose execution operators (PythonOperator and BashOperator) to run both the data manipulation logic and compute-heavy Spark processing directly within the local container runtime of the Airflow worker pods.
The workload consisted only of trivial, lightweight Python string manipulations or directory checks that require negligible memory and zero external service orchestration.
Heavy processing must always be offloaded to dedicated processing engines like Dataproc, Dataflow, or BigQuery rather than executed on Composer worker nodes.
This option bypasses Airflow's native task management by delegating execution to Cloud Functions and Cloud Workflows, while running heavy third-party Spark daemons inside the internal Google Kubernetes Engine (GKE) cluster managed by Cloud Composer.
The workload was built purely as a microservice-based event-driven workflow without requiring Cloud Composer or Apache Airflow.
Google Cloud documentation explicitly advises against installing or running additional components in the environment's GKE cluster that interfere with Composer services.
This configuration keeps a static Dataproc cluster continuously running around the clock and uses generic SSH or remote script execution operators to trigger batch Spark jobs.
The organization had a requirement for sub-second job start times across hundreds of continuous streaming or interactive queries throughout the entire 24-hour cycle.
Cloud Composer provides first-class support for creating and deleting ephemeral Dataproc clusters within the lifecycle of a single DAG run.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated