A multinational bank keeps all credit-card transactions in a single BigQuery table called finance_prod.payment_txn. The table contains the columns pan (primary account number), txn_amount, merchant_id, and region_code.
Members of the group [email protected] must be able to explore the data freely but must never see raw pan values.
Members of the group [email protected] need full access to pan, yet they should only view rows where region_code equals the geographic region (EU or US) assigned to them.
The security team requires that no data be copied or duplicated into additional tables or projects. Which approach best meets these requirements while honoring the principle of least privilege?
Move payment_txn into a separate dataset; create a duplicate dataset without the pan column for data scientists and use dataset-level IAM to control access; no row-level filters are applied.
Enable Customer-Managed Encryption Keys (CMEK) on payment_txn, grant the Viewer role on the dataset to [email protected], and the BigQuery Data Viewer role to [email protected]; rely on CMEK to protect sensitive data.
Tag the pan column with a Data Catalog policy tag and grant only [email protected] the Fine-Grained Reader role on that tag; add a row-level access policy on payment_txn filtering by region_code for each audit region; publish an authorized view that omits pan and grant [email protected] access to the view.
Create two new tables, one per region, each containing all columns; mask pan with SHA256() in views for [email protected], and grant auditors direct access to both regional tables.
The requirements call for two independent layers of fine-grained control applied directly on the source table. Column-level security can hide the sensitive pan column unless a user or group has the Fine-Grained Reader permission on the Data Catalog policy tag that protects that column; granting this role only to [email protected] satisfies the need for auditors to see the field while blocking data scientists. A row-level access policy scoped to region_code limits auditors to the rows for their region. Because data scientists must query the rest of the columns without seeing pan, the most efficient solution that avoids data duplication is an authorized view which excludes pan; the view can be shared with [email protected], allowing arbitrary analysis on the remaining columns. Dataset-level IAM is kept minimal, and no extra tables are created.
Alternative designs that copy data into masked or regional tables violate the "no duplication" constraint, while relying only on table-level ACLs or CMEK does not provide column or row-level filtering.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Data Catalog policy tag?
Open an interactive chat with Bash
How does row-level access policy work in BigQuery?
Open an interactive chat with Bash
What is an authorized view in BigQuery?
Open an interactive chat with Bash
What is a Fine-Grained Reader role in Data Catalog?
Open an interactive chat with Bash
How do row-level access policies work in BigQuery?
Open an interactive chat with Bash
What is an authorized view in BigQuery, and how does it secure data?
Open an interactive chat with Bash
GCP Professional Data Engineer
Designing data processing systems
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .