Home › Studies › AZ-305 › Data Storage › Table Storage vs Cosmos DB for Table

Table Storage vs Cosmos DB for Table

Key-value semi-structured data

Practice questions for this topic →

Comparison

Azure Table StorageCosmos DB for Table
Data modelEntities identified by PartitionKey + RowKeySame model and SDKs (wire-protocol compatible)
IndexingPartitionKey and RowKey onlyAll properties indexed automatically
DistributionSingle region (+ optional read secondary)Turnkey global distribution, multi-region
ThroughputAbout 20,000 operations per second per tableElastic; effectively unlimited, SLA-backed
Latency SLA10-second SLA (per Microsoft's FAQ)<10 ms reads, <15 ms writes (P99)
BillingPay for what you useReserved capacity: you pay as soon as the table exists, even if idle (or serverless)
ConsistencyStrong within the primary regionFive levels

Exam Tips

Tick each tip once you can answer it without looking.

“Cheapest store for simple key-value data, low traffic” → Azure Table Storage.

“Table app needs global distribution and secondary indexes” → Cosmos DB for Table (same API, no code rewrite).

“Queries filter on non-key properties and are slow” → Cosmos DB for Table (automatic indexing).

“Need guaranteed single-digit-ms latency” → Cosmos DB for Table.

“Cosmos DB for Table features” → Wire-compatible with Table SDKs, automatic indexing, global distribution, five consistency levels. Trap: Microsoft points to Cosmos DB for NoSQL when you need a 99.999% SLA.

“Billing difference between the table services” → Cosmos Table reserves capacity (pay once the table exists); Table Storage pays for use. Trap: Latency: 10-second SLA versus under 10 ms reads.

Sources

← Cosmos DB Consistency & PartitioningStorage Accounts & Redundancy →