Compare / Spanner vs Bigtable

Spanner vs Bigtable

Both scale far beyond one server, but Spanner is relational with SQL and strongly consistent transactions, while Bigtable is a wide-column NoSQL store tuned for very high throughput by row key.

In 40 practice questions across 6 practice banks

Associate Cloud Engineer Storage & Databases

You are developing an internet of things (IoT) application that captures sensor data from multiple devices that have already been set up. You need to identify the global data storage product your company should use to store this data. You must ensure that the storage solution you choose meets your requirements of sub-millisecond latency. What should you do?

  1. Spanner is relational scale — cache layers don't fix a write-throughput problem.

  2. Bigtable's wide-column design with timestamped rows handles high-velocity device telemetry globally.

  3. BigQuery ingestion is an analytical load path — not a high-rate operational write sink.

  4. CDN caching accelerates reads — this sensor workload is write-dominant.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

At a glance

SpannerBigtable
Data modelRelational tables, schemas, joinsSparse wide-column rows keyed by one row key
TransactionsACID across rows, tables and regionsAtomic within a single row only
Query languageSQL (GoogleSQL or PostgreSQL interface)Row-key lookups and range scans; no SQL joins
StrengthGlobal consistency with horizontal scaleMassive throughput at single-digit millisecond latency
Typical useLedgers, orders, inventory, user accounts at scaleTime series, IoT telemetry, ad tech, recommendation data

Choose Spanner when

  • You need relational structure and transactions across multiple rows or regions.
  • Strong consistency matters more than raw write throughput.
  • The application is a system of record that must scale globally.

Choose Bigtable when

  • Data arrives at very high volume and is read by key or key range.
  • The schema is sparse or changes often, and multi-row transactions are not needed.
  • It is time series, IoT or analytics-serving data, or an HBase migration.

Exam tip

Transactions, joins and "consistency" point to Spanner. "Time series", "millions of writes per second" and "HBase" point to Bigtable. Neither is the answer for ad-hoc analytics; that is BigQuery.

Practice banks covering this comparison

Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.