StudyToCert

All certifications / AI-200 / Lessons

Microsoft Certified: Azure AI Cloud Developer Associate AI-200 (replaced AZ-204) · Domain 2: Develop AI solutions by using Azure data management services

Partition key design: high cardinality, even spread, point reads; hierarchical partition keys

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Cosmos DB scales out by partitioning. Every item's partition key value places it in a logical partition, the set of all items that share that value. Logical partitions are grouped onto physical partitions, each with its own storage and a share of the container's throughput. You pick the partition key path, such as /customerId, when creating the container, and it cannot be changed afterwards without migrating the data to a new container. That makes it the most important design decision in Cosmos DB.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study AI-200 for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the AI-200 study plan