Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium

A global online gaming platform uses Azure Cosmos DB to store player profiles, game statistics, and leaderboards. To ensure players worldwide experience low-latency access and high availability, the platform architect wants to configure Cosmos DB to allow writes to any of its globally distributed regions. Which feature of Azure Cosmos DB allows this configuration?

  1. ASession Consistency
  2. BIndexed Paths
  3. CMulti-master writes
  4. DStrong Consistency
Show answer & explanation

Correct answer: C. Multi-master writes

Multi-master writes (also known as multi-region writes) in Azure Cosmos DB enable applications to write data to any configured region, not just a single primary region. This is crucial for global applications to ensure low-latency writes and high availability for users worldwide.

Why the other options are wrong

  • A. Session Consistency is a consistency model that ensures data consistency within a client session, but it doesn't enable multi-region writing.
  • B. Indexed Paths are used to configure indexing policies within a Cosmos DB container to optimize query performance, not for multi-region write capabilities.
  • D. Strong Consistency is a consistency model that ensures data is always up-to-date across all replicas, but it doesn't directly enable writes to multiple regions.

Azure Cosmos DB Multi-master Writes

A feature of Azure Cosmos DB that enables applications to write data to any of the configured regions, not just a single primary write region.

  • Provides low-latency writes globally.
  • Enhances high availability and disaster recovery.
  • Requires careful conflict resolution strategy.

Memory trick: Global writes mean multi-master magic.

More Describe how to work with non-relational data on Azure questions