Question

Difficulty: EasyAzure Cosmos DB and NoSQL Solutions

An organization is deploying a globally distributed multiplayer game. You are designing the Azure Cosmos DB NoSQL API account to store player profile data. The database must replicate data between East US and West US to support a read/write ratio of 70%70\% reads and 30%30\% writes. The architecture requires a 99.999%99.999\% availability SLA for both read and write operations. The player profile documents contain a unique `playerId`, a `countryCode` (with 55 possible values), and a `lastLoginTimestamp`.

Which two options should you include in the design to meet the SLA and performance requirements? (Select TWO.)

  1. Enable write operations in multiple regions for the database account.Answer
  2. Configure playerId as the partition key for the player profile container.Answer
  3. C
    Configure countryCode as the partition key for the player profile container.
  4. D
    Deploy the database in a single region with locally redundant storage (LRS).

Answer

Configure write operations in multiple regions and choose playerId as the partition key.
To achieve a 99.999%99.999\% write availability SLA in Azure Cosmos DB, the database account must be configured with write operations enabled in multiple regions. Additionally, to maintain high performance and prevent hot partitions under write load, the partition key must have high cardinality. Since playerId is unique for each player, it serves as an excellent partition key to distribute database operations evenly.

Step-by-Step Solution

1
Analyze availability requirements.
The target SLA is 99.999%99.999\% for both reads and writes.
Azure Cosmos DB requires multi-region writes to guarantee a 99.999%99.999\% write availability SLA.
2
Select a partition key based on cardinality.
playerId is selected over countryCode.
A high-cardinality partition key like playerId prevents hot partitions by distributing requests evenly across logical partitions.

Key Concept

Azure Cosmos DB high availability configuration and partition key design.
Rate this question