nerdexam
Microsoft

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.

Submitted by jordan8· Mar 30, 2026Develop for Azure storage

Question

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 including location, menu items, and start. You currently store information for 1,000 restaurant locations, 500 menu items, and 10,000 staff members. You select the location id as the partition key. How many logical partitions will be created for the container?

Options

  • A500
  • B1,100
  • C10.000
  • D10,000,000

How the community answered

(20 responses)
  • B
    5% (1)
  • C
    85% (17)
  • D
    10% (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.

A500

500 refers to the number of menu items, which is not directly tied to the number of unique 'location id' values for partitioning purposes.

B1,100

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.

C10.000Correct

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.

D10,000,000

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

#Cosmos DB#partition key#logical partitions#data modeling

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice