How should you de-identify email fields before BigQuery joins?
Your company's data platform ingests CSV file dumps of booking and user profile data from upstream sources into Cloud Storage. The data analyst team wants to join these datasets on the email field available in both the datasets to perform analysis. However, personally identifiable information (PII) should not be accessible to the analysts. You need to de-identify the email field in both the datasets before loading them into BigQuery for analysts. What should you do?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests the difference between Cloud DLP de-identification transformations and BigQuery dynamic masking; the trap is picking a masking method that loses join consistency or deferring de-identification until after data is loaded.
To join datasets on de-identified email fields in BigQuery, use Cloud DLP format-preserving encryption (FFX) for deterministic, format-preserving pseudonymization. The community consensus favors option B, noting that masking and dynamic data masking either break joinability or leave raw PII in BigQuery.
A common mistake is choosing Cloud DLP masking or BigQuery dynamic data masking. Masking can produce non-unique values that prevent accurate joins, while dynamic masking stores raw PII in BigQuery and does not de-identify before loading as required.
Community Discussion (13 comments)
- The reason option C works well is that dynamic data masking in BigQuery allows the underlying data to remain unaltered (thus preserving the ability to join on this field), while also preventing analysts from viewing the actual PII. - The analysts can query and join the data as needed for their analysis, but when they access the data, the email field will be masked according to the policy tag, and they will only see the masked version.
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option B uses Cloud DLP format-preserving encryption (FPE) with FFX, which encrypts the email field while preserving its format and ensuring the same input always produces the same encrypted output. This deterministic property allows the two datasets to be joined on the encrypted email values in BigQuery. Because the data is de-identified before loading, analysts never see raw PII.Why the Other Options Are Wrong
Option A uses masking transformation, which typically replaces email characters with placeholder symbols like '#' or '*'. This does not guarantee uniqueness, so joining on the masked field would fail or produce incorrect results. Options C and D rely on BigQuery dynamic data masking, which masks data only at query time for users with restricted roles, leaving the raw email stored in BigQuery and violating the requirement to de-identify before loading.Community Comment Notes
Several comments correctly highlight that masking "might not preserve the uniqueness and joinability" (comment 4) and that dynamic masking "does not address the requirement to de-identify data before loading" (comment 4). Comment 5 poignantly explains that C/D perform masking inside BigQuery, not before loading. Comment 6 links to Google's pseudonymization documentation, supporting FPE/FFX as the right approach. Even the minority comment 8 favoring dynamic masking concedes it leaves underlying data unaltered, which contradicts the stated "before loading" requirement.Official Reference
Exam Strategy
When a question mentions de-identifying before loading and needing to join later, look for deterministic, format-preserving methods like Cloud DLP FPE with FFX. Eliminate any option that only masks in BigQuery or that does not preserve a one-to-one join key.