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?

  1. A.Changes for all customers are globally ordered by timestamp.
  2. B.Changes are ordered within a logical partition, but no global ordering is guaranteed across customers.Correct answer
  3. C.Changes are ordered alphabetically by the partition key value.
  4. 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

All of Azure Cosmos DB – Change Feed, Stored Procedures and Triggers

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 free

Free to start · No credit card needed