What is the difference between temporary, permanent, and materialized views in BigQuery?

Quick Overview

Asks how temporary, permanent and materialized views differ in BigQuery. Tests knowledge of query and session scope, what each option stores, how querying it is billed, how materialized views refresh and stay current, and which workload suits each choice.

What is the difference between temporary, permanent, and materialized views in BigQuery?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What is the difference between temporary, permanent, and materialized views in `BigQuery`? ```hint Three questions for each For each option, ask where it lives, how long it lasts, and whether it stores rows or only the SQL text. Then check how each one is billed when you query it. ``` ### What a Strong Answer Covers - What "temporary view" means in BigQuery terms, which features fill that role, and how long each one lasts - What a permanent (logical) view stores, when its query runs, and how querying it is billed - How a materialized view stores and refreshes its results, and when queries can use it automatically - The restrictions and costs of materialized views, and the workload each option suits ### Follow-up Questions - A dashboard runs the same daily aggregation over a large events table every few minutes. Which option would you use, and what would you check first? - How can a view let a team query part of a table without access to the base table? - What does a query on a materialized view return when the base table has changed since the last refresh? - When would you choose a scheduled query that writes to a table over a materialized view?

Overview: Asks how temporary, permanent and materialized views differ in BigQuery. Tests knowledge of query and session scope, what each option stores, how querying it is billed, how materialized views refresh and stay current, and which workload suits each choice.

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

What is the difference between temporary, permanent, and materialized views in BigQuery?

What a Strong Answer Covers Guidance

  • What "temporary view" means in BigQuery terms, which features fill that role, and how long each one lasts
  • What a permanent (logical) view stores, when its query runs, and how querying it is billed
  • How a materialized view stores and refreshes its results, and when queries can use it automatically
  • The restrictions and costs of materialized views, and the workload each option suits

Follow-up Questions Guidance

  • A dashboard runs the same daily aggregation over a large events table every few minutes. Which option would you use, and what would you check first?
  • How can a view let a team query part of a table without access to the base table?
  • What does a query on a materialized view return when the base table has changed since the last refresh?
  • When would you choose a scheduled query that writes to a table over a materialized view?