Microsoft Certified: Azure Solutions Architect ExpertDesign business continuity solutionsMedium

A global online gaming company uses Azure Cosmos DB for its player profiles and game state. The company operates in multiple continents and requires ultra-low latency reads and writes for all users, regardless of their geographic location. The solution must also provide high availability and automatic failover across regions without any application code changes. Which Cosmos DB feature set should be implemented?

  1. AMulti-region writes with session consistency
  2. BMulti-region reads with eventual consistency
  3. CSingle-region deployment with strong consistency
  4. DSingle-region deployment with bounded staleness
Show answer & explanation

Correct answer: A. Multi-region writes with session consistency

Azure Cosmos DB's multi-region writes feature allows all configured regions to be writable, providing ultra-low latency writes globally. Combining this with session consistency (the default and most commonly used consistency level for globally distributed applications) ensures high availability, automatic failover, and low-latency reads and writes for users worldwide without requiring application code changes.

Why the other options are wrong

  • B. Multi-region reads with eventual consistency would provide low-latency reads but not low-latency writes, and eventual consistency might not be suitable for game state in all scenarios.
  • C. Single-region deployment cannot provide global ultra-low latency or automatic failover across regions.
  • D. Single-region deployment cannot provide global ultra-low latency or automatic failover across regions, and bounded staleness is a consistency level, not a multi-region strategy.

Cosmos DB Multi-Region Writes

An Azure Cosmos DB capability that allows all regions configured for an account to be active for both reads and writes, enabling global ultra-low latency and high availability.

  • All regions are writable and readable.
  • Provides global low latency for both reads and writes.
  • Offers automatic failover and high availability.
  • Often paired with session consistency for optimal global performance.

Memory trick: Cosmos DB Multi-Region Writes: Write anywhere, read anywhere, instantly, globally.

More Design business continuity solutions questions