Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Data Engineer

Planning data pipelines

Professional Data Engineer · Lesson 6 of 23 · 42:39

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Professional Data Engineer exam, on the official exam guide. In this lesson: sources and sinks, ETL and ELT, transformation and orchestration logic, networking (Private Google Access, Cloud NAT, and Private Service Connect), encryption with customer-managed keys, and data cleansing with dead-letter outputs. Includes three original practice questions, with Cymbal Mobility, a fictional ride-hailing and scooter company, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

One pipeline, three sources

Cymbal Mobility wants one pipeline for its scooters: positions from fifty thousand vehicles every few seconds, trips from the bookings database, and weather from a partner's web service. City teams want a real-time map, analysts want clean tables in BigQuery, and the security team wants nothing exposed to the internet. Before anyone writes code, the data engineer plans the pipeline.

Sources and sinks

A pipeline reads from sources and writes to sinks. For each source, write down its format, its volume, how fast new data arrives, and how the pipeline reaches it: does the source push events, or must the pipeline pull them? For each sink, start from the consumers: how fresh the data must be, and how they will use it. BigQuery serves analytics, Bigtable serves fast lookups by key, Cloud Storage keeps raw files cheaply, and Pub/Sub hands events on to other systems. Apache Beam, which Dataflow runs, comes with ready-made connectors for most of them, including Pub/Sub, Kafka, BigQuery, Bigtable, and Cloud Storage.

Transformation and orchestration

Next, the logic. Transformations can run before loading, in a tool like Dataflow, which is ETL, or after loading, with SQL inside BigQuery, which is ELT. Plan the cleansing too: types and formats, missing values, repeated events, and invalid events, which go to a separate dead-letter destination instead of stopping the pipeline. Orchestration is the logic around the steps: what runs first, on a schedule or on an event, with retries and backfills. Managed Service for Apache Airflow and Workflows handle it, and lesson ten covers both.

Networking

Dataflow runs its workers as virtual machines in a VPC network and subnetwork, which can be a Shared VPC network from a host project. By default, workers get external IP addresses; to keep them private, turn external addresses off, and enable Private Google Access on the subnetwork, so workers still reach Google APIs like BigQuery and Cloud Storage. For sources on the internet, like the partner's weather service, add Cloud NAT. Private Service Connect is another option: it gives Google APIs, or a partner's published service, an internal IP address inside your own network. Workers also talk to each other: unless the job uses Dataflow Shuffle or Streaming Engine, firewall rules must allow TCP ports one two three four five for streaming, and one two three four six for batch, between VMs with the dataflow network tag. And sources in your own data center are reached through Cloud VPN or Cloud Interconnect, as in lesson five.

Encryption

Last, encryption. Data at rest is encrypted by default, and connections to Google APIs are protected with TLS. When a pipeline must use your own key, run the Dataflow job with a customer-managed key from Cloud KMS: it protects the pipeline's state, like worker disks, shuffle state for batch jobs, and temporary files in Cloud Storage. The key must be in the same region as the job, because global and multi-region keys are not supported. Sources and sinks keep their own settings, so give the Pub/Sub topic, the bucket, and the BigQuery dataset their customer-managed keys too.

Recap

Let's recap. For each source, know its format, volume, speed, and whether it pushes data or must be pulled. Choose each sink from what its consumers need: BigQuery, Bigtable, Cloud Storage, or Pub/Sub. Decide where transformations run, ETL in Dataflow or ELT in BigQuery, and plan cleansing, dead letters, and orchestration. Keep workers private with Private Google Access, Cloud NAT, or Private Service Connect, and open the worker ports when the job uses neither Dataflow Shuffle nor Streaming Engine. And for your own keys, run the job with a customer-managed key in its region, and protect sources and sinks as well.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Scooter positions arrive every few seconds, and the city teams’ map must show them within seconds, after bad coordinates are filtered out. Which design fits?

    • An hourly file export, then a batch load into BigQuery
    • A daily BigQuery Data Transfer Service run
    • Pub/Sub, then a Dataflow streaming pipeline into BigQuery
    • A Cloud SQL table that the map polls
    Show the answer

    Pub/Sub, then a Dataflow streaming pipeline into BigQuery

    Pub/Sub receives the events as they arrive, and a Dataflow streaming pipeline filters them and writes to BigQuery within seconds. “An hourly file export, then a batch load into BigQuery” would make the map up to an hour late. “A daily BigQuery Data Transfer Service run” would load the data once a day. And “A Cloud SQL table that the map polls” would add a database that the map must poll, with nothing to filter the bad coordinates.

  2. Security removed the external IP addresses of the Dataflow workers, and the job now fails, because workers cannot reach BigQuery or Cloud Storage. What should the data engineer do?

    • Enable Private Google Access on the workers’ subnetwork
    • Give the workers external IP addresses again
    • Allow ingress from any address in the firewall
    • Open TCP ports 12345 and 12346 between the workers
    Show the answer

    Enable Private Google Access on the workers’ subnetwork

    Private Google Access lets VMs with only internal IP addresses reach Google APIs and services. “Give the workers external IP addresses again” would undo the security team's decision. “Allow ingress from any address in the firewall” would open the workers to traffic from anywhere, and would not help them reach Google APIs. And “Open TCP ports 12345 and 12346 between the workers” only allows traffic between workers, not to BigQuery or Cloud Storage.

  3. Compliance requires Cymbal Mobility’s own Cloud KMS key on everything the trips pipeline stores while it runs, including shuffle state and temporary files. What should the data engineer do?

    • Rely on Google’s default encryption at rest
    • Enable Private Google Access on the subnetwork
    • Add the project to a VPC Service Controls perimeter
    • Run the job with a customer-managed key in its region
    Show the answer

    Run the job with a customer-managed key in its region

    A customer-managed key on the Dataflow job protects its disks, shuffle state, and temporary files, and it must be in the job's region. “Rely on Google’s default encryption at rest” uses keys that Google manages, not Cymbal Mobility's own key. “Enable Private Google Access on the subnetwork” only changes how workers reach Google APIs. And “Add the project to a VPC Service Controls perimeter” only stops data from leaving a perimeter, without changing any key.