Your retail data platform stores detailed orders data in a BigQuery dataset owned by the finance team. A marketing agency must build a Looker Studio dashboard that shows only daily revenue totals by country. The agency must never be able to read the raw order-level rows, and the finance team wants to avoid copying data or maintaining scheduled export jobs. Which approach best meets the requirements while enforcing least-privilege access?
Create a materialized view in the finance dataset that aggregates daily revenue and grant the agency BigQuery Data Viewer access on that materialized view.
Create an authorized view in a separate, shared dataset that computes daily revenue totals, grant the agency BigQuery Data Viewer on that dataset, and authorize the view to access the finance dataset.
Apply row-level security policies to the orders table and grant the agency BigQuery JobUser and Data Viewer roles on the finance dataset.
Schedule a daily query that writes revenue aggregates to a new BigQuery table in a shared dataset and grant the agency BigQuery Data Viewer access on that table.
Creating an authorized view lets you expose a query's results (for example, daily revenue totals) while withholding direct access to the underlying orders table. The view is placed in a separate dataset that is shared with the agency, and the view itself is granted read access to the source dataset. Because users query the view through the BigQuery API, they can see only the aggregated results; attempts to reference the base table are blocked. This satisfies the requirement without duplicating data or adding operational overhead.
A standard materialized view (first option) would still require the agency to have access to the base table's dataset, violating the security requirement. Writing aggregates to a new table with a scheduled query (third option) duplicates data and introduces ongoing maintenance. Row-level security or column-level masking (fourth option) cannot guarantee that ad-hoc queries won't expose raw rows, and masking is column-, not row-centric, so it does not address the need to hide individual order rows.
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 an authorized view in BigQuery?
Open an interactive chat with Bash
How does an authorized view enforce least-privilege access?
Open an interactive chat with Bash
What is the difference between a materialized view and an authorized view?
Open an interactive chat with Bash
What is an authorized view in BigQuery?
Open an interactive chat with Bash
How does an authorized view differ from a materialized view in BigQuery?
Open an interactive chat with Bash
What are the advantages of an authorized view compared to duplicating data in BigQuery?
Open an interactive chat with Bash
GCP Professional Data Engineer
Preparing and using data for analysis
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 .