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.
Question
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.
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.
BigQuery Data Transfer Service is designed for scheduled data movement between supported sources and BigQuery, not for custom transformation or DLP masking logic.
Concept tested: Dataflow Apache Beam pipeline with Cloud DLP de-identification
Source: https://cloud.google.com/dataflow/docs/guides/using-dlp
Topics
Community Discussion
No community discussion yet for this question.