A logistics company is designing a global shipment tracking system that will run on Azure Cosmos DB for NoSQL. The application must process real-time coordinate updates from 500,000 active delivery vehicles. The workload is highly write-heavy, with an expected write-to-read ratio of 95:5. The system must support global distribution across three Azure regions with a 99.999% availability SLA for both reads and writes, keeping write latency under 10 milliseconds. You need to design the Cosmos DB configuration and choose a partition key to prevent hot partitions while meeting the SLA. Which configuration should you recommend?
- AEnable multi-region writes, configure the account with Service-Managed Failover, and set the partition key to shipmentStatus.
- BConfigure a single write region with read-only replicas in the other two regions, and set the partition key to vehicleId with Locally Redundant Storage (LRS) enabled for the primary region.
- Enable multi-region writes, configure the account with Service-Managed Failover, and set the partition key to vehicleId.Cevap
- DEnable multi-region writes, configure client authentication using a single Shared Access Signature (SAS) token with a 5-year lifetime embedded in the mobile application, and set the partition key to vehicleRegion.
Cevap
Enable multi-region writes, configure the account with Service-Managed Failover, and set the partition key to vehicleId.
The correct configuration enables multi-region writes to achieve the necessary sub-10ms write latency and 99.999% SLA across multiple regions. By partitioning on vehicleId, which possesses high cardinality, the platform ensures that the heavy write workload is distributed uniformly across physical partitions, avoiding throughput bottlenecks and hot partitions.
Adım Adım Çözüm
Anahtar Kavram
Azure Cosmos DB partition key selection and global write replication configuration
Tahmini Süre:1m 30s