What are policy tags and dynamic data masking in BigQuery, and how do they enforce column-level governance?

Quick Overview

Asks what BigQuery policy tags and dynamic data masking are and how they control access to sensitive columns. Tests knowledge of column-level security, the roles that decide raw versus masked access, and the trade-offs of masking for joins and privacy.

What are policy tags and dynamic data masking in BigQuery, and how do they enforce column-level governance?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are policy tags and dynamic data masking in `BigQuery`, and how do they enforce column-level governance? ```hint Deny or transform Consider two outcomes for a user who lacks full access to a sensitive column: the query fails, or it returns a changed value. Ask which feature produces each and what decides between them. ``` ```hint Where the grant lives Look at what the permission is attached to: the table, the column, or something the column points to. Think about what that means when many tables share the same classification. ``` ### What a Strong Answer Covers - What a policy tag is, where it is defined, and how attaching it to a column restricts reads - What a masking rule does and how it relates to a policy tag - How the roles a user holds decide whether they see raw values, masked values, or an error - Why one table can serve several audiences, and which masking choices still allow joins or counts - Limits and pitfalls, such as what masking does not protect against and how this differs from row-level security ### Follow-up Questions - Which masking rule would you choose for a customer email column that analysts need to join on, and what risk remains? - How would you restrict which rows a regional team can see, in addition to which columns? - How do you audit who read the raw values of a tagged column? - What happens to a query that uses `SELECT *` on a table with a tagged column the user cannot read?

Overview: Asks what BigQuery policy tags and dynamic data masking are and how they control access to sensitive columns. Tests knowledge of column-level security, the roles that decide raw versus masked access, and the trade-offs of masking for joins and privacy.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What are policy tags and dynamic data masking in BigQuery, and how do they enforce column-level governance?

What a Strong Answer Covers Guidance

  • What a policy tag is, where it is defined, and how attaching it to a column restricts reads
  • What a masking rule does and how it relates to a policy tag
  • How the roles a user holds decide whether they see raw values, masked values, or an error
  • Why one table can serve several audiences, and which masking choices still allow joins or counts
  • Limits and pitfalls, such as what masking does not protect against and how this differs from row-level security

Follow-up Questions Guidance

  • Which masking rule would you choose for a customer email column that analysts need to join on, and what risk remains?
  • How would you restrict which rows a regional team can see, in addition to which columns?
  • How do you audit who read the raw values of a tagged column?
  • What happens to a query that uses SELECT * on a table with a tagged column the user cannot read?