You are creating a new lease container in Azure Cosmos DB to support a Change Feed Processor instance. Which partition key path must be defined on the lease container for it to function correctly?
- /idAnswer
- B/partitionKey
- C/leaseId
- D/status
Answer
/id
The correct answer is /id because the Azure Cosmos DB Change Feed Processor requires the lease container to use the /id partition key path. This allows the processor to uniquely identify and lease individual partitions.
Step-by-Step Solution
Key Concept
Azure Cosmos DB Change Feed lease container partition key requirement