Skip to content

Masking sensitive fields and controlling who can see them

Google Cloud lets you protect sensitive analytics data through layered IAM permissions, BigQuery's built-in column/row-level security, and Sensitive Data Protection (formerly Cloud DLP) for discovering and de-identifying PII before or during analysis. Exam questions typically test which control (IAM role, policy tag, authorized view, or DLP transformation) fits a given masking or access scenario. Understand that IAM controls *who* can access a resource, while column/row-level security and DLP control *what data* they see once granted access.

1 · Learn the must-know

  • IAM at the project/dataset/table level (e.g., BigQuery dataViewer, dataEditor, dataOwner) controls coarse-grained access; use the principle of least privilege and prefer predefined roles over primitive roles.
  • BigQuery column-level security uses Data Catalog policy tags plus IAM (Data Catalog fine-grained reader role) to restrict which columns a user can query, independent of table-level access.
  • Row-level security in BigQuery is implemented via CREATE ROW ACCESS POLICY, filtering rows returned based on the querying user's identity or group.
  • Authorized views and authorized datasets let you share query results without granting underlying table access, useful for masking logic implemented in SQL.
  • Sensitive Data Protection (Cloud DLP) can inspect data (structured or unstructured) to detect infoTypes like emails or credit card numbers, and de-identify it using techniques such as masking, tokenization, format-preserving encryption, or date shifting via inspect/de-identify templates and jobs.
  • Cloud DLP de-identification is typically applied in a pipeline (e.g., Dataflow) before loading into BigQuery, whereas column/row-level security and IAM control access after the data is already stored, know which layer a scenario is asking about.

2 · Check your understanding

Check this objectiveFree · always available

A data engineer at a retail company must de-identify a column of customer email addresses in a BigQuery table before it is shared with a marketing analytics team. The requirement is that the same email address must always map to the same masked value across every table it appears in, so that tables can still be joined on that column, and a small group of privacy officers must later be able to recover the original email addresses if a customer files a data request. Which Cloud DLP transformation should the engineer use?

Your objective map0 tried · 0 answered correctly · 67 untouched

What you have tried across GCP PDE's objectives, not a readiness score.

Designing data processing systems~22% of the exam0 of 17 tried
Ingesting and processing the data~25% of the exam0 of 11 tried
Storing the data~20% of the exam0 of 13 tried
Preparing and using data for analysis~15% of the exam0 of 11 tried
Maintaining and automating data workloads~18% of the exam0 of 15 tried

3 · Keep going