Non-relational data storage - Cosmos DB - Consistency levels

6 important questions on Non-relational data storage - Cosmos DB - Consistency levels

Name the consistency levels of Cosmos DB from Strong to Weakest.

  1. Strong
  2. Bounded Staleness
  3. Session prefix
  4. Consistent prefix
  5. Eventual

What is  a strong consistency level?

Reads are guaranteed to return the most recent committed version of an item. You will never see uncommitted or partial writes.

What is the Bounded staleness consistency level?

Consistency level for reads is behind by minimum number of versions or time interval. The minimum number is 10 write operations or 5 seconds and maximum consistency may vary by:
  • Client in the same region, single write (strong)
  • Client in a Different region, single write region (consistent prefix)
  • Client writing to a Single region, account having multiple write regions (Consistent prefix).
  • Client writing to different regions, account with multiple write regions (eventual)
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What is a session consistency level?

Within a single client session reads are guaranteed to honor consistent prefix, monotonic reads, monotonic writes, read you writes and write follows reads. This assumes a single writer session or sharing sessions tokens for multiple writers.

What is a consistent prefix consistency level?

Updates that are returned contain some prefix of all the updates, but no gaps.

What is a eventual consistency level?

There is no ordering guarantee for reads. In the absence of further writes, the replicas eventually converge.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo