Azure Cosmos DB – Consistency, Partitioning and SDK · AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage

A globally distributed Azure Cosmos DB account must allow reads from any region, but each read may lag behind the latest write by no more than 5 seco…

Practice question from Azure Cosmos DB – Consistency, Partitioning and SDK (AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage), with the correct answer and a step-by-step solution.

easy · MCQ · Q-E43C77

A globally distributed Azure Cosmos DB account must allow reads from any region, but each read may lag behind the latest write by no more than 5 seconds or 100,000 updates, whichever limit is reached first. Which consistency level should be configured?

  1. A.Eventual consistency
  2. B.Consistent prefix consistency
  3. C.Bounded staleness consistencyCorrect answer
  4. D.Strong consistency

Solution

Bounded staleness consistency guarantees that reads lag behind writes by no more than a configured time interval or number of versions. Eventual and consistent prefix consistency do not provide this explicit staleness bound, while strong consistency provides a stricter guarantee than required.

More from Azure Cosmos DB – Consistency, Partitioning and SDK

All of Azure Cosmos DB – Consistency, Partitioning and SDK

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