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

An application uses Azure Cosmos DB to update a user's profile and then immediately read the profile during the same user session. The read must refl…

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-1BC9F8

An application uses Azure Cosmos DB to update a user's profile and then immediately read the profile during the same user session. The read must reflect the user's preceding write, while the application should avoid the stronger global coordination of strong consistency. Which consistency level is most appropriate?

  1. A.Eventual
  2. B.SessionCorrect answer
  3. C.Consistent prefix
  4. D.Strong

Solution

Session consistency provides read-your-writes and monotonic-read guarantees within a client session without requiring the global coordination of strong consistency. Eventual and consistent-prefix consistency do not guarantee that the immediate read observes the preceding write.

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