What consistency guarantees does BigQuery give for DML, multi-statement transactions and the streaming buffer?

Quick Overview

A BigQuery question on transaction and consistency guarantees: what a single DML statement promises, how multi-statement transactions and their isolation behave, and where streamed rows sit before they reach managed storage. It tests practical knowledge needed to build reliable pipelines on a data warehouse.

What consistency guarantees does BigQuery give for DML, multi-statement transactions and the streaming buffer?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What transaction and consistency guarantees does BigQuery provide, including multi-statement transactions and the streaming buffer? ```hint Separate the scopes Start with what one DML statement promises, then ask what changes when several statements across tables must succeed or fail together, and what a concurrent reader sees meanwhile. ``` ```hint Follow a streamed row Trace a row from the moment a client streams it until it sits in managed storage. Which operations can read it or change it along the way? ``` ### What a Strong Answer Covers - Atomicity of a single DML statement and the snapshot a query reads - How multi-statement transactions are written, the isolation they give, and how conflicts and failures are handled - Time travel and its retention window - What the streaming buffer is, which operations can read or modify buffered rows, and how the Storage Write API changes the picture - What BigQuery does not offer compared with an OLTP database, such as row locks and enforced keys ### Follow-up Questions - A deduplication job runs `DELETE` every five minutes on a table fed by legacy streaming and keeps failing. Why, and how would you redesign it? - How would you make a daily reload of a summary table safe to re-run after it fails halfway through? - Two scheduled `MERGE` jobs write to the same table at the same time. What can go wrong, and how do you handle it? - A bad `UPDATE` ran an hour ago. How do you get the previous data back?

Overview: A BigQuery question on transaction and consistency guarantees: what a single DML statement promises, how multi-statement transactions and their isolation behave, and where streamed rows sit before they reach managed storage. It tests practical knowledge needed to build reliable pipelines on a data warehouse.

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

What transaction and consistency guarantees does BigQuery provide, including multi-statement transactions and the streaming buffer?

What a Strong Answer Covers Guidance

  • Atomicity of a single DML statement and the snapshot a query reads
  • How multi-statement transactions are written, the isolation they give, and how conflicts and failures are handled
  • Time travel and its retention window
  • What the streaming buffer is, which operations can read or modify buffered rows, and how the Storage Write API changes the picture
  • What BigQuery does not offer compared with an OLTP database, such as row locks and enforced keys

Follow-up Questions Guidance

  • A deduplication job runs DELETE every five minutes on a table fed by legacy streaming and keeps failing. Why, and how would you redesign it?
  • How would you make a daily reload of a summary table safe to re-run after it fails halfway through?
  • Two scheduled MERGE jobs write to the same table at the same time. What can go wrong, and how do you handle it?
  • A bad UPDATE ran an hour ago. How do you get the previous data back?