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

A global e-commerce platform uses Azure Cosmos DB to store product catalog information. To ensure that users around the world experience the fastest possible response times, the platform needs to distribute its data across multiple Azure regions and allow writes to be performed in any of these regions. Which Cosmos DB feature enables this capability?

  1. AIndexing policies
  2. BPartitioning keys
  3. CChange feed
  4. DMulti-master writes
Show answer & explanation

Correct answer: D. Multi-master writes

Multi-master (or multi-region writes) is a key feature of Azure Cosmos DB that allows applications to write data to any configured region and have that data replicated across all other regions. This ensures low-latency writes globally, as users can write to the nearest region, which is critical for a global e-commerce platform seeking the fastest response times worldwide.

Why the other options are wrong

  • A. Indexing policies control how data is indexed for query performance, not global write distribution.
  • B. Partitioning keys distribute data within a single region or across regions for scalability, but don't inherently enable multi-region writes.
  • C. Change feed provides a continuous stream of changes, used for event-driven architectures, not for enabling global writes.

Azure Cosmos DB Multi-Master Writes

A feature in Azure Cosmos DB that allows applications to write data to any configured region, with automatic replication to all other regions.

  • Enables global low-latency writes by directing write operations to the nearest region.
  • Increases write availability and resilience.
  • Requires configuring the Cosmos DB account for multiple write regions.
  • Conflicts are handled by configurable conflict resolution policies.

Memory trick: For global reads and writes, think 'multi-region, multi-master'.

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