professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your organization stores customer transaction data in a centralized BigQuery table named sales.transactions. You need to securely share this table with three distinct user groups while enforcing the principle of least privilege:
region = 'EMEA', and payment identifiers must be masked.How should you configure access controls and data policies in Google Cloud to achieve these requirements?
This solution combines BigQuery Column-Level Access Control, Dynamic Data Masking (DDM) via Data Catalog policy tags, and Row-Level Security (RLS) to enforce multi-layered, fine-grained access controls.
roles/datacatalog.categoryFineGrainedReader) role on the taxonomy policy tag allows auditors to read the unmasked cleartext data in the tagged column across all rows.roles/bigquery.maskedReader) role allows their queries to execute normally while dynamically returning obscured/masked values.CREATE ROW ACCESS POLICY ... FILTER USING (region = 'EMEA')) restricts the returned rows to EMEA, while the assigned BigQuery Masked Reader role ensures that the payment identifier column in those permitted rows remains masked.This approach avoids data duplication, eliminates maintenance overhead associated with managing separate localized views or export tables, and natively enforces fine-grained authorization using standard Google Cloud IAM and BigQuery DDL policies.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.