nerdexam
Google

PROFESSIONAL-DATA-ENGINEER · Question #319

You are planning to load some of your existing on-premises data into BigQuery on Google Cloud. You want to either stream or batch-load data, depending on your use case. Additionally, you want to mask

Apache Beam on Dataflow supports both streaming and batch modes with a unified SDK and allows programmatic Cloud DLP integration for data masking, minimizing cost and complexity.

Submitted by ahmad_uae· Mar 30, 2026Building and operationalizing data processing systems

Question

You are planning to load some of your existing on-premises data into BigQuery on Google Cloud. You want to either stream or batch-load data, depending on your use case. Additionally, you want to mask some sensitive data before loading into BigQuery. You need to do this in a programmatic way while keeping costs to a minimum. What should you do?

Options

  • AUse Cloud Data Fusion to design your pipeline, use the Cloud DLP plug-in to de-identify data within your pipeline, and then move the data into BigQuery.
  • BUse the BigQuery Data Transfer Service to schedule your migration. After the data is populated in BigQuery, use the connection to the Cloud Data Loss
  • CCreate your pipeline with Dataflow through the Apache Beam SDK for Python, customizing separate options within your code for streaming, batch processing,

Why each option

Apache Beam on Dataflow supports both streaming and batch modes with a unified SDK and allows programmatic Cloud DLP integration for data masking, minimizing cost and complexity.

AUse Cloud Data Fusion to design your pipeline, use the Cloud DLP plug-in to de-identify data within your pipeline, and then move the data into BigQuery.

Cloud Data Fusion is a GUI-driven, managed service with higher operational costs and is less suited for fine-grained programmatic control compared to writing code directly with the Beam SDK.

BUse the BigQuery Data Transfer Service to schedule your migration. After the data is populated in BigQuery, use the connection to the Cloud Data Loss

BigQuery Data Transfer Service is designed for scheduled data movement between supported sources and BigQuery, not for custom transformation or DLP masking logic.

CCreate your pipeline with Dataflow through the Apache Beam SDK for Python, customizing separate options within your code for streaming, batch processing,

Concept tested: Dataflow Apache Beam pipeline with Cloud DLP de-identification

Source: https://cloud.google.com/dataflow/docs/guides/using-dlp

Topics

#Dataflow#Cloud DLP#data masking#BigQuery ingestion

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-DATA-ENGINEER Practice