A streaming analytics workload writes millions of rows per hour into the partitioned table clickstream.events (partitioned by the event_date column). To accelerate dashboard queries that aggregate the number of page views per day, you create the following materialized view:
CREATE MATERIALIZED VIEW marketing.mv_daily_views
PARTITION BY event_date AS
SELECT
event_date,
COUNT(*) AS views
FROM `marketing.clickstream.events`
GROUP BY event_date;
After deployment, you notice that the view's query latency is consistently low even though the base table continues to grow rapidly. What explains this behavior?
A manual Cloud Scheduler job is automatically created during CREATE MATERIALIZED VIEW to refresh the view after every load job.
BigQuery rebuilds the entire materialized view on a 30-minute interval, which masks the growing size of the base table during rebuilds.
The materialized view is refreshed only when it is queried; the low latency occurs because no one has queried it since creation.
BigQuery updates only the partitions of the materialized view that correspond to newly inserted or modified event_date values, so most of the cached results remain valid and can be served immediately.
Materialized views cache the results of their defining query. When new data arrives in a base table, BigQuery identifies the affected partitions and performs an incremental refresh that recalculates only those partitions instead of re-scanning the full table. Because the dashboard query matches the granularity of the materialized view, BigQuery can serve results directly from the cached data, keeping latency low despite the high ingest rate. The other statements conflict with documented functionality: materialized views are not fully rebuilt on a fixed schedule, do not require user-managed refresh jobs, and do not wait to be queried before refreshing.
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.
How does partitioning in BigQuery tables work?
Open an interactive chat with Bash
What is a materialized view in BigQuery?
Open an interactive chat with Bash
What is an incremental refresh in BigQuery materialized views?
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 .