A logistics company is designing a telemetry ingestion backend for active delivery vehicles. Each vehicle uploads coordinate and sensor data every seconds. The storage solution must be designed to meet the following requirements:
- Regional disaster resilience must be guaranteed with a recovery point objective () of zero.
- Write-path hot partitioning must be prevented under high-throughput ingestion.
- Security credentials for read access must be easily revocable.
Which configuration should you recommend?
- AConfigure an Azure Cosmos DB account with a single write region and a secondary replica region using Strong consistency, and partition the container using TelemetryDate.
- Configure an Azure Cosmos DB account with a single write region and a secondary replica region using Strong consistency, partition the container using VehicleID, and utilize a token broker to issue short-lived Cosmos DB resource tokens for client access.Answer
- CConfigure an Azure Storage Table with Locally Redundant Storage (LRS) replication, partition by VehicleID, and use a token broker to issue short-lived resource tokens.
- DConfigure an Azure Cosmos DB account with a single write region and a secondary replica region using Strong consistency, partition the container using VehicleID, and authorize clients using ad-hoc Shared Access Signature (SAS) tokens configured with a five-year validity period without a stored access policy.
Answer
Configure an Azure Cosmos DB account with a single write region and a secondary replica region using Strong consistency, partition the container using VehicleID, and utilize a token broker to issue short-lived Cosmos DB resource tokens for client access.
The configuration utilizing a single write region with a secondary replica under Strong consistency satisfies the RPO = 0 requirement by executing synchronous replication. Using the high-cardinality VehicleID as the partition key ensures that writes are evenly distributed, avoiding hot partitions. Generating short-lived resource tokens via a token broker ensures that read access can be easily managed and revoked.
Step-by-Step Solution
Key Concept
Designing partition keys and consistency configurations in Azure Cosmos DB to meet scalability, disaster recovery, and security requirements.