Compare BigQuery's legacy streaming inserts and the Storage Write API on quotas, cost and deduplication

Quick Overview

Compare the legacy BigQuery streaming insert API with the Storage Write API for real-time ingestion. It tests your knowledge of per-GB cost against batch loads, streaming quotas and the streaming buffer, stream types, and how insertId and offsets handle duplicate rows.

Compare BigQuery's legacy streaming inserts and the Storage Write API on quotas, cost and deduplication

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Explain the different options for streaming data into BigQuery (the legacy streaming insert API, `tabledata.insertAll`, versus the `Storage Write API`) and their characteristics regarding quotas, cost, and deduplication. ```hint Compare how each API handles a retry A client sends rows, the request times out, and the client sends them again. Think about what each API can use to recognize the second copy, and for how long. ``` ```hint Keep batch loads in view Streaming is one of three ways to get data in. Ask what it costs compared with a load job and when low latency is worth paying for. ``` ### What a Strong Answer Covers - How each API sends data: protocol, row format and client effort - Cost relative to each other and to batch load jobs - Quota and throughput differences, and how the legacy streaming buffer affects other operations - Delivery semantics and deduplication in each API, including stream types and offsets - A recommendation for when to use which, including when not to stream at all ### Follow-up Questions - A writer using the Storage Write API retries an append after a timeout. How do offsets stop the retry from creating duplicate rows? - Your producer sometimes emits the same event twice. Does exactly-once delivery into BigQuery remove those duplicates? - When would you choose a pending stream over the default stream? - The data only needs to be queryable within an hour. Which ingestion method would you pick, and why?

Overview: Compare the legacy BigQuery streaming insert API with the Storage Write API for real-time ingestion. It tests your knowledge of per-GB cost against batch loads, streaming quotas and the streaming buffer, stream types, and how insertId and offsets handle duplicate rows.

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

Explain the different options for streaming data into BigQuery (the legacy streaming insert API, tabledata.insertAll, versus the Storage Write API) and their characteristics regarding quotas, cost, and deduplication.

What a Strong Answer Covers Guidance

  • How each API sends data: protocol, row format and client effort
  • Cost relative to each other and to batch load jobs
  • Quota and throughput differences, and how the legacy streaming buffer affects other operations
  • Delivery semantics and deduplication in each API, including stream types and offsets
  • A recommendation for when to use which, including when not to stream at all

Follow-up Questions Guidance

  • A writer using the Storage Write API retries an append after a timeout. How do offsets stop the retry from creating duplicate rows?
  • Your producer sometimes emits the same event twice. Does exactly-once delivery into BigQuery remove those duplicates?
  • When would you choose a pending stream over the default stream?
  • The data only needs to be queryable within an hour. Which ingestion method would you pick, and why?