GCP - Professional Data Engineer Study Guide

    2: Ingesting and processing the data

    This chapter covers the planning, construction, and operationalization of batch and streaming pipelines on Google Cloud. Coverage spans source and sink selection, transformation logic, networking and encryption planning, service selection across Dataflow, Dataproc, Cloud Data Fusion, Pub/Sub, and Apache Kafka, and the orchestration and CI/CD patterns used to deploy pipelines safely into production.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Plan data pipelines, including defining data sources and sinks, transformation and orchestration logic, networking fundamentals, and data encryption choices.
    • Build pipelines that cleanse data, select the right service from the Google Cloud and open-source catalog, apply batch and streaming transformations with windowing and late-data handling, enrich data with AI signals, acquire data through import paths, and integrate new sources.
    • Deploy and operationalize pipelines with job automation and orchestration through Cloud Composer and Workflows, and with CI/CD patterns for code, templates, and DAGs.

    Executive Summary

    • Pipeline planning starts with source and sink contracts, then layers in transformation semantics, network reachability, and encryption boundaries before code is written.
    • Service selection is the dominant exam pattern in Section 2: Dataflow for unified batch and streaming on Apache Beam, Dataproc for lift and shift of Hadoop and Spark, Cloud Data Fusion for low-code visual ETL, BigQuery for ELT inside the warehouse, Pub/Sub for ingestion and decoupling, and Apache Kafka through Managed Service for Apache Kafka or self-managed when ecosystem parity matters.
    • Streaming correctness depends on event time, watermarks, windowing strategy, allowed lateness, and trigger configuration. Misreading these primitives is the most common source of wrong answers.
    • Operationalization splits cleanly: Cloud Composer for complex DAGs with sensors, retries, and SLAs across heterogeneous systems; Workflows for lightweight serverless choreography of API calls; CI/CD with Cloud Build, Artifact Registry, Cloud Deploy, and Dataform releases for promotion across environments.

    Assumptions

    • Reader is a practicing data engineer familiar with Apache Beam, Spark, SQL, and IAM concepts at the level established in the previous chapter.
    • Terminology from the previous chapter (Cloud IAM, CMEK, VPC Service Controls perimeter, Dataform, Apache Beam, Dataflow, Cloud Composer, Workflows, Cloud Data Fusion, change data capture, Datastream, Apache Iceberg) is not re-defined here.
    • Region examples use us-central1 and europe-west1 for clarity, but the patterns generalize.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account