DP-420 · Question #112
You have an Azure Cosmos DB database. You plan to create a new container named container1 that will store product data and product category data and will primarily support read requests. You need to…
The correct answer is B. high cardinality D. static. High cardinality: Choosing a partition key with high cardinality means having a large number of unique values distributed across the dataset. This helps in distributing the data evenly across multiple partitions, preventing hotspots and ensuring efficient scalability. Static…
Question
You have an Azure Cosmos DB database. You plan to create a new container named container1 that will store product data and product category data and will primarily support read requests. You need to configure a partition key for container1. The solution must meet the following requirements:
- Minimize the size of the partition.
- Minimize maintenance effort.
Which two characteristics should you prioritize? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Options
- Aunique
- Bhigh cardinality
- Clow cardinality
- Dstatic
How the community answered
(29 responses)- A3% (1)
- B90% (26)
- C7% (2)
Explanation
High cardinality: Choosing a partition key with high cardinality means having a large number of unique values distributed across the dataset. This helps in distributing the data evenly across multiple partitions, preventing hotspots and ensuring efficient scalability. Static: Selecting a static partition key means choosing a key that does not frequently change. This minimizes the need for updates to the partition key value and reduces maintenance effort. It also helps in maintaining a consistent distribution of data across partitions over time.
Topics
Community Discussion
No community discussion yet for this question.