How can you optimize data storage costs in BigQuery?

Quick Overview

Asks how to reduce what BigQuery charges for storing data, separate from query costs. Tests understanding of the long-term storage discount and what resets it, expiration settings, logical versus physical storage billing, time travel overhead, and avoiding redundant tables.

How can you optimize data storage costs in BigQuery?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How can you optimize data storage costs in BigQuery? The question is about what you pay to keep data stored, separate from what you pay to run queries. ```hint What the bill counts Look at which bytes you are billed for, at which rate, and what moves a byte from the active price to the long-term price or back. ``` ### What a Strong Answer Covers - How the long-term storage discount works and what resets it - Expiration settings that delete stale data automatically - The choice between logical and physical storage billing, and how to decide per dataset - Removing redundant copies and derived tables - How time travel and fail-safe retention show up on the bill ### Follow-up Questions - Which numbers would you look at to decide whether a dataset should switch to physical billing? - A nightly job recreates a five-year history table from scratch. What does that do to storage cost, and how would you change it? - When does moving cold data out of BigQuery into object storage make sense, and what do you give up?

Overview: Asks how to reduce what BigQuery charges for storing data, separate from query costs. Tests understanding of the long-term storage discount and what resets it, expiration settings, logical versus physical storage billing, time travel overhead, and avoiding redundant tables.

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

How can you optimize data storage costs in BigQuery? The question is about what you pay to keep data stored, separate from what you pay to run queries.

What a Strong Answer Covers Guidance

  • How the long-term storage discount works and what resets it
  • Expiration settings that delete stale data automatically
  • The choice between logical and physical storage billing, and how to decide per dataset
  • Removing redundant copies and derived tables
  • How time travel and fail-safe retention show up on the bill

Follow-up Questions Guidance

  • Which numbers would you look at to decide whether a dataset should switch to physical billing?
  • A nightly job recreates a five-year history table from scratch. What does that do to storage cost, and how would you change it?
  • When does moving cold data out of BigQuery into object storage make sense, and what do you give up?