🔥 3-day streak
Microsoft Azure Cosmos DB Developer Specialty (DP-420)97 / 104
Question 97 of 104

You are designing a Cosmos DB container for an IoT telemetry workload. Devices write readings continuously, and there are only 12 device types. You initially chose deviceType as the partition key, but during load testing you observe severe throttling (429 errors) concentrated on a few logical partitions, while total provisioned throughput is far from being consumed. The application always queries telemetry filtered by a specific deviceType over a time range. Which change to the partition key strategy best resolves the hot-partition problem while keeping queries efficient?

Reviewed for accuracy · Report an issueNext question