Q47 Cosmos DB Domain 2 · 25–30% of exam

What is the recommended partition key strategy for a Cosmos DB container storing IoT telemetry from thousands of devices?

  1. A Use the device timestamp as partition key
  2. B Use deviceId as partition key for high cardinality (correct answer)
  3. C Use a single partition 'telemetry' for all data
  4. D Use region name as partition key

Shortcut: deviceId provides high cardinality (many distinct values), distributing data evenly across partitions. Avoid low-cardinality keys like region or date alone, which create hot partitions.