To avoid 'Hot Partitions' in Cosmos DB, what should a developer choose as the 'Partition Key'?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: A property with a wide range of values (high cardinality) like a hash of a UserID or OrderID

To prevent performance bottlenecks and uneven distribution of data (hot partitions), developers should choose a partition key with high cardinality and a wide range of values, such...

๐Ÿ“‹Part of Microsoft Certified: Azure Administrator Associate (AZ-104) ยท Azure Certification Practice
Real Exam ScenarioAzure Cosmos DB

To avoid 'Hot Partitions' in Cosmos DB, what should a developer choose as the 'Partition Key'?

โœ“ Correct Answer & ExplanationAzure Cosmos DB

Correct Answer

A property with a wide range of values (high cardinality) like a hash of a UserID or OrderID

Why This Answer Is Correct

To prevent performance bottlenecks and uneven distribution of data (hot partitions), developers should choose a partition key with high cardinality and a wide range of values, such as a hash of User ID or Order ID.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Cosmos DB โ€” a core concept tested in Microsoft Certified: Azure Administrator Associate (AZ-104). Understanding Azure Cosmos DB is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.