professional-cloud-data-engineer
Extract, Transform, Load (ETL) and Extract, Load, Transform (ELT) are two distinct data integration architectures defined by where data transformation takes place. In programmatic ETL, an external processing engine transforms raw data before loading it into the target data warehouse. In declarative ELT, raw data is loaded directly into the data warehouse, which then utilizes its native compute engine to execute transformations.
| Architecture | Primary Google Cloud tools | Best data formats | Operational model |
|---|---|---|---|
| Programmatic ETL | Cloud Dataproc, Cloud Dataflow (using Apache Spark or Apache Beam) | Unstructured, non-relational, or complex non-tabular data | Requires managing pipeline infrastructure, worker scaling, and custom code maintenance |
| Declarative ELT | BigQuery, User-Defined Functions (UDFs) | Structured, tabular data suited for SQL transformations | Serverless execution using massively parallel processing with no cluster management |
Exam tip: Choose programmatic ETL with Cloud Dataflow or Cloud Dataproc when raw data requires intensive pre-load cleansing or non-tabular processing, and choose declarative ELT with BigQuery SQL when working with structured data that can take advantage of serverless warehouse compute.
A hybrid transformation architecture balances the custom processing capabilities of programmatic ETL with the speed and simplicity of declarative ELT. In this design, streaming or batch data lands first in Cloud Storage as an initial staging layer. An initial programmatic ETL pipeline running on Cloud Dataflow or Cloud Dataproc performs baseline format conversions, cleansing, and schema validation. Once the cleaned data is loaded into BigQuery, declarative SQL scripts and UDFs handle business transformations and analytical aggregations directly inside the warehouse.
Cloud Composer is a managed workflow orchestration service built on Apache Airflow that automates, schedules, and monitors multi-step data pipelines. Workflows are authored as Directed Acyclic Graphs (DAGs), which organize individual pipeline steps using operators to execute work and sensors to evaluate dependencies. DAG definition files are uploaded to the /dags folder in the Cloud Composer environment's Cloud Storage bucket, allowing engineers to track execution states via the Airflow web interface. Upstream and downstream pipelines connect through fan-in dependencies, where multiple pipelines feed into one downstream stage, or fan-out dependencies, where a single pipeline triggers multiple subsequent workflows.
Google Cloud Workflows is a serverless orchestration service tailored for lightweight, low-latency coordination of microservices and API-driven tasks. The service defines workflows using YAML syntax and executes automated steps without requiring infrastructure management or cluster maintenance. Scheduled workflows run via Cloud Scheduler and can orchestrate external services, including executing SQL transformation pipelines in Dataform. While Cloud Composer is optimized for complex, long-running batch data transformations across diverse data systems, Google Cloud Workflows provides fast, event-driven execution for rapid microservice tasks.
Exam tip: Use Cloud Composer to orchestrate heavy, long-running data pipelines with complex cross-system dependencies, and select Google Cloud Workflows for lightweight, event-driven microservice coordination requiring low latency.
Migrating orchestration workflows into Google Cloud follows an incremental, three-stage lifecycle to maintain operational reliability while optimizing resource usage:
Dataflow Prime is a serverless platform designed to execute unified batch and streaming pipelines written in the Apache Beam software development kit (SDK). The platform provides Vertical Autoscaling, an automated mechanism that dynamically adjusts worker memory allocations to prevent out-of-memory errors during heavy transformations. Pipeline developers can also supply resource hints to achieve right fitting, which allocates specific quantities of memory or dedicated GPUs to individual processing steps. This targeted allocation decouples step-level resource needs from global worker defaults, minimizing overall compute costs.
Data skew and uneven processing loads can introduce hot keys, which occur when a large volume of data shares the same key and bottlenecks an individual compute worker. Engineers resolve hot keys and monitor pipeline performance using specific transformation strategies:
ParDo transforms to output new key-value pairs, effectively rekeying unbalanced data across workers.withFanout parameter on combine transforms to spread heavy aggregation steps across multiple intermediate processing tasks.Exam tip: Add the withFanout parameter to Apache Beam combine transforms to distribute high-volume aggregations and eliminate hot key processing bottlenecks.
The Apache Beam Managed I/O connector provides structured integrations that allow pipelines to read from and write to modern data lakehouse formats and warehouses. For example, streaming pipelines can execute Change Data Capture (CDC) reads against Apache Iceberg tables via the BigLake REST Catalog, consuming append-only snapshots and writing structured schemas to target tables in BigQuery. Comprehensive data environments coordinate these Beam pipelines alongside broader Google Cloud governance and machine learning services:
/dags Cloud Storage bucket, while Google Cloud Workflows coordinates low-latency, YAML-defined microservice tasks.ParDo transforms or by applying the withFanout parameter to combine transforms.Prepare and test your skills
Prepare and test your skills
Programmatic ETL uses external processing engines like Cloud Dataproc or Cloud Dataflow to cleanse and transform unstructured or non-tabular data before loading it into storage. In contrast, declarative ELT loads raw structured data directly into a data warehouse like BigQuery, utilizing native serverless SQL and User-Defined Functions for transformations.
Cloud Composer is designed to orchestrate heavy, long-running batch data pipelines with complex cross-system dependencies using Apache Airflow Directed Acyclic Graphs (DAGs). Google Cloud Workflows is tailored for lightweight, event-driven coordination of microservices and API-driven tasks that require low latency and serverless execution.
Engineers can eliminate hot keys by applying element-wise ParDo transforms to output new key-value pairs, rekeying unbalanced data across workers. Additionally, developers can configure the withFanout parameter on combine transforms to distribute high-volume aggregations across intermediate processing tasks.
Dataflow Prime uses Vertical Autoscaling to dynamically adjust worker memory allocations, preventing out-of-memory errors during heavy transformations. It also supports resource hints to achieve right fitting, allowing developers to assign specific memory amounts or dedicated GPUs to individual pipeline steps instead of relying on global defaults.
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.
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.
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.
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?