When do you use materialized views vs scheduled queries vs persisted tables for dashboards?

Quick Overview

A data warehousing question about serving dashboards from BigQuery with a materialized view, a scheduled query or a persisted table. It tests how well you understand refresh mechanics, freshness, SQL limits and scan cost, and whether you can pick the right option for a given dashboard.

When do you use materialized views vs scheduled queries vs persisted tables for dashboards?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

When do you use materialized views vs scheduled queries vs persisted tables for dashboards? Assume the dashboards read from a BigQuery warehouse whose base tables keep receiving new data. ```hint Compare on two axes Look at who triggers the refresh in each option and how much SQL each one accepts. ``` ```hint Count the bytes Think about how much each dashboard load scans and how much each refresh scans. ``` ### What a Strong Answer Covers - How each option is refreshed and who owns the refresh - The freshness each option can deliver and what limits it - The SQL limits of materialized views and when complex logic forces a table - Cost, both per refresh and per dashboard query - A clear rule for picking one option in a given case ### Follow-up Questions - How would you make a scheduled query process only new data and still handle late-arriving events? - A dashboard needs data no older than five minutes from a table that receives streaming inserts. What would you build? - How would you tell dashboard users how fresh the numbers are? - When would you move these transformations out of scheduled queries into a tool such as dbt?

Overview: A data warehousing question about serving dashboards from BigQuery with a materialized view, a scheduled query or a persisted table. It tests how well you understand refresh mechanics, freshness, SQL limits and scan cost, and whether you can pick the right option for a given dashboard.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

When do you use materialized views vs scheduled queries vs persisted tables for dashboards?

Assume the dashboards read from a BigQuery warehouse whose base tables keep receiving new data.

What a Strong Answer Covers Guidance

  • How each option is refreshed and who owns the refresh
  • The freshness each option can deliver and what limits it
  • The SQL limits of materialized views and when complex logic forces a table
  • Cost, both per refresh and per dashboard query
  • A clear rule for picking one option in a given case

Follow-up Questions Guidance

  • How would you make a scheduled query process only new data and still handle late-arriving events?
  • A dashboard needs data no older than five minutes from a table that receives streaming inserts. What would you build?
  • How would you tell dashboard users how fresh the numbers are?
  • When would you move these transformations out of scheduled queries into a tool such as dbt?