How are slots scheduled and shared among concurrent queries and users in BigQuery?

Quick Overview

A BigQuery question on how slots, the engine's unit of compute, are scheduled and shared when many queries and users run at once. It tests fair scheduling, the difference between on-demand and capacity pricing, and how reservations and idle slot sharing isolate or pool workloads.

How are slots scheduled and shared among concurrent queries and users in BigQuery?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How are slots scheduled and shared among concurrent queries and users in BigQuery? A slot is BigQuery's unit of compute. Picture several teams running queries at the same time against the same project or organization. ```hint Follow one query over time A query runs as a series of stages. Ask how many slots it needs during each stage, and what happens to the slots it no longer needs. ``` ```hint Where the pool comes from The pricing model decides which pool of slots a query draws from. Compare what you buy under on-demand and under capacity pricing. ``` ### What a Strong Answer Covers - What a slot is and how a query's stages become parallel units of work that slots execute - How the scheduler grants and reclaims slots while a query runs, and how it divides capacity when demand is higher than supply - How on-demand and capacity (Editions) pricing define the slot pool that queries share - Reservations, assignments, idle slot sharing and baseline plus autoscaling, and how they isolate or pool workloads - What a query experiences when its share is small, and how a team would notice ### Follow-up Questions - A nightly ETL job and a BI dashboard share one reservation, and dashboard latency spikes every night. How would you diagnose it and what would you change? - Why might doubling the slots available to a query fail to halve its runtime? - What happens to a query running on idle slots borrowed from another reservation when that reservation's own load returns? - When would you choose on-demand pricing over buying capacity, and what would you monitor to revisit the choice?

Overview: A BigQuery question on how slots, the engine's unit of compute, are scheduled and shared when many queries and users run at once. It tests fair scheduling, the difference between on-demand and capacity pricing, and how reservations and idle slot sharing isolate or pool workloads.

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

How are slots scheduled and shared among concurrent queries and users in BigQuery?

A slot is BigQuery's unit of compute. Picture several teams running queries at the same time against the same project or organization.

What a Strong Answer Covers Guidance

  • What a slot is and how a query's stages become parallel units of work that slots execute
  • How the scheduler grants and reclaims slots while a query runs, and how it divides capacity when demand is higher than supply
  • How on-demand and capacity (Editions) pricing define the slot pool that queries share
  • Reservations, assignments, idle slot sharing and baseline plus autoscaling, and how they isolate or pool workloads
  • What a query experiences when its share is small, and how a team would notice

Follow-up Questions Guidance

  • A nightly ETL job and a BI dashboard share one reservation, and dashboard latency spikes every night. How would you diagnose it and what would you change?
  • Why might doubling the slots available to a query fail to halve its runtime?
  • What happens to a query running on idle slots borrowed from another reservation when that reservation's own load returns?
  • When would you choose on-demand pricing over buying capacity, and what would you monitor to revisit the choice?