How do BigQuery UPDATE, DELETE and MERGE costs and quotas differ from DML in a traditional RDBMS?

Quick Overview

Asks how BigQuery bills and limits UPDATE, DELETE and MERGE statements and how that differs from DML in a row-oriented transactional database. Tests understanding of the on-demand cost model, how columnar storage handles changes, partition pruning and limits on concurrent mutations.

How do BigQuery UPDATE, DELETE and MERGE costs and quotas differ from DML in a traditional RDBMS?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are the cost and quota characteristics of DML operations (`UPDATE`/`DELETE`/`MERGE`) in BigQuery, and how do they differ from a traditional RDBMS? ```hint Start from the storage Think about what changing a single row means when the table is stored as immutable, compressed column files. ``` ```hint Follow the bill Look at what on-demand pricing is based on, and at how much of a large table an `UPDATE` with no partition filter has to read. ``` ### What a Strong Answer Covers - What on-demand billing for DML is based on, and which columns and partitions count toward it. - What happens in storage when rows change. - How concurrent mutating statements on one table behave. - The contrast with indexed, in-place row updates in an OLTP database. - Practices that keep DML cost and conflicts down. ### Follow-up Questions - A nightly `MERGE` into a date-partitioned table scans the whole target even though the source holds one day of changes. Why, and how do you fix it? - How would you apply a stream of row-level changes (CDC) to a BigQuery table without running one `UPDATE` per change? - How does the cost picture change under capacity (slot-based) pricing? - Why might an `UPDATE` fail on rows that were streamed into the table a few minutes ago?

Overview: Asks how BigQuery bills and limits UPDATE, DELETE and MERGE statements and how that differs from DML in a row-oriented transactional database. Tests understanding of the on-demand cost model, how columnar storage handles changes, partition pruning and limits on concurrent mutations.

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

What are the cost and quota characteristics of DML operations (UPDATE/DELETE/MERGE) in BigQuery, and how do they differ from a traditional RDBMS?

What a Strong Answer Covers Guidance

  • What on-demand billing for DML is based on, and which columns and partitions count toward it.
  • What happens in storage when rows change.
  • How concurrent mutating statements on one table behave.
  • The contrast with indexed, in-place row updates in an OLTP database.
  • Practices that keep DML cost and conflicts down.

Follow-up Questions Guidance

  • A nightly MERGE into a date-partitioned table scans the whole target even though the source holds one day of changes. Why, and how do you fix it?
  • How would you apply a stream of row-level changes (CDC) to a BigQuery table without running one UPDATE per change?
  • How does the cost picture change under capacity (slot-based) pricing?
  • Why might an UPDATE fail on rows that were streamed into the table a few minutes ago?