Azure Cosmos DB – Change Feed, Stored Procedures and Triggers · AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage
A Cosmos DB container uses customerId as its partition key. A change feed consumer receives changes for customers C100 and C200. Which ordering guara…
Practice question from Azure Cosmos DB – Change Feed, Stored Procedures and Triggers (AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage), with the correct answer and a step-by-step solution.
easy · MCQ · Q-81B619
A Cosmos DB container uses customerId as its partition key. A change feed consumer receives changes for customers C100 and C200. Which ordering guarantee can the consumer rely on?
- A.Changes for all customers are globally ordered by timestamp.
- B.Changes are ordered within a logical partition, but no global ordering is guaranteed across customers.Correct answer
- C.Changes are ordered alphabetically by the partition key value.
- D.Changes are always delivered in the order in which consumers request them.
Solution
Azure Cosmos DB preserves change-feed ordering within a logical partition. It does not guarantee a single global order across different partition key values.
More from Azure Cosmos DB – Change Feed, Stored Procedures and Triggers
- A .NET service must process new and updated documents from an Azure Cosmos DB container, while allowing multiple service instances to scale…
- A stored procedure in Azure Cosmos DB must insert three documents and update a fourth document as one atomic operation. What is required fo…
- An application has a Cosmos DB pre-trigger named ValidateOrder. The developer expects the trigger to run automatically whenever any client…
- An application uses the default latest-version mode of the Azure Cosmos DB change feed. It must reliably notify another system when a custo…
Practise more Develop for Azure Storage
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed