AZ-204 · Question #105
You have an Azure Cosmos 06 instance that uses the Strong consistency level and 10,000 Request Units (RUs) per container. <3eo-replication is enabled. The instance stores restaurant information…
The correct answer is C. 10.000. The number of logical partitions in Azure Cosmos DB is determined by the count of unique values for the chosen partition key. With 'location id' as the partition key, the 10,000 staff members imply up to 10,000 unique location IDs.
Question
Options
- A500
- B1,100
- C10.000
- D10,000,000
How the community answered
(20 responses)- B5% (1)
- C85% (17)
- D10% (2)
Why each option
The number of logical partitions in Azure Cosmos DB is determined by the count of unique values for the chosen partition key. With 'location id' as the partition key, the 10,000 staff members imply up to 10,000 unique location IDs.
500 refers to the number of menu items, which is not directly tied to the number of unique 'location id' values for partitioning purposes.
1,100 is the sum of restaurant locations and menu items, which does not account for the potential number of unique 'location id' values based on staff data.
In Azure Cosmos DB, a logical partition is created for each unique value of the partition key. Since 'location id' is the partition key and the data includes 10,000 staff members, each potentially associated with a distinct location id, there will be up to 10,000 unique 'location id' values, thus creating 10,000 logical partitions.
10,000,000 is an arbitrary number not supported by the provided data, as the maximum unique partition key values suggested by the data is 10,000.
Concept tested: Azure Cosmos DB logical partitions and partition key
Source: https://learn.microsoft.com/en-us/azure/cosmos-db/partitioning-overview#logical-partitions
Topics
Community Discussion
No community discussion yet for this question.