You are an Azure Solutions Architect designing a data storage solution for a global media streaming platform. The platform must store real-time user playback progress and watch history. The workload has a read-to-write ratio of approximately . The solution must be distributed across three regions (East US, West Europe, and East Asia) to achieve sub-10ms write latency at the 99th percentile and support an active-active setup. The platform requires a 99.999% availability SLA for both reads and writes. High availability and regional disaster resilience must be guaranteed for all data, including database backups.
Which two configuration options should you include in the architectural design to meet these requirements? (Select TWO)
- Enable multi-region writes for the Azure Cosmos DB account to support the active-active global configuration and satisfy the low latency and high availability SLA.Cevap
- Select a high-cardinality partition key, such as a combination of user ID and session ID, to distribute read and write operations evenly across logical partitions.Cevap
- CSet the partition key to the user's country region to align data storage with regional access patterns and simplify query routing.
- DConfigure the Azure Cosmos DB backup storage redundancy as Locally Redundant Storage (LRS) to minimize operational costs while relying on manual failover scripts.
- ESecure user profile images in the associated Azure Blob Storage account by generating Shared Access Signature (SAS) tokens with a five-year expiration directly in the database without a stored access policy.
Cevap
Enable multi-region writes for the Azure Cosmos DB account and select a high-cardinality partition key, such as a combination of user ID and session ID.
The correct solution involves enabling multi-region writes for the Azure Cosmos DB account and selecting a high-cardinality partition key (user ID + session ID). Multi-region writes ensure write operations are committed locally in all designated regions, satisfying both the sub-10ms write latency and the 99.999% write availability SLA. A high-cardinality partition key guarantees that the write-heavy workload is evenly distributed across logical and physical partitions, avoiding resource hot spots.
Adım Adım Çözüm
Anahtar Kavram
Azure Cosmos DB Multi-Region Replication and Partitioning Design