You are designing the data storage solution for a global micro-mobility fleet management system that tracks active electric scooters. The scooters report status updates, including battery level and GPS coordinates, every seconds. The read-to-write ratio is (write-heavy). The system must support multi-region write replication across East US, West Europe, and Southeast Asia to guarantee write latency below globally. The solution must survive a complete regional outage without data loss or downtime. Which design configuration meets these requirements while preventing hot partitions and ensuring regional disaster resilience?
- AConfigure Azure Cosmos DB with multi-region writes enabled across the target regions, and set the partition key to the scooter's operating status to group the telemetry data.
- BConfigure Azure Cosmos DB as a single-region deployment utilizing Locally Redundant Storage (LRS) to optimize database throughput, and rely on daily database backups to survive regional outages.
- Configure Azure Cosmos DB with multi-region writes enabled across East US, West Europe, and Southeast Asia, and set the partition key to the unique scooter identifier.Cevap
- DConfigure Azure Cosmos DB with multi-region writes enabled, set the partition key to the unique scooter identifier, and distribute access tokens to the fleet using Shared Access Signatures (SAS) with a five-year validity duration directly embedded in each device's configuration.
Cevap
Configure Azure Cosmos DB with multi-region writes enabled across the target regions, using the unique scooter identifier as the partition key.
Configuring Azure Cosmos DB with multi-region writes enables active-active writes in East US, West Europe, and Southeast Asia, allowing the write-heavy client applications to achieve sub-10ms latency. The unique scooter identifier acts as a high-cardinality partition key, ensuring that writes and storage are uniformly distributed across logical partitions to prevent hot partitioning. In the event of a regional outage, Cosmos DB automatically routes traffic to other configured write regions, maintaining continuous availability.
Adım Adım Çözüm
Anahtar Kavram
Partition key design, global replication, and high availability in Azure Cosmos DB.
Tahmini Süre:1m 30s