Google BigQuery (50 Qs)•Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)
Column-Level Security (Policy Tags) and Row-Level Security in BigQuery.
senior LevelCode ExampleSecurity & Auth
In Simple Words:
- Column-Level Security via Policy Tags (Data Catalog / Dataplex):
- Create taxonomy tags:
PII -> High_Confidentiality. - Attach the tag to the
ssncolumn. - Users without the Fine-Grained Reader IAM role receive an
Access Deniederror if they attempt to query that column.
- Create taxonomy tags:
- Row-Level Security:
sql
CREATE ROW ACCESS POLICY emea_filter ON `sales` GRANT TO ("group:emea-sales@corp.com") FILTER USING (region = 'EMEA');