You are designing a globally distributed data storage solution for an international supply chain tracking system. The system must ingest telemetry data from active tracking devices. The workload is write-heavy, consisting of writes and reads. The data must be accessible with sub- read and write latencies globally. The architecture must guarantee write availability and support regional disaster recovery. You decide to use Azure Cosmos DB for NoSQL with multi-region writes enabled. Which configuration should you recommend to meet the requirements while preventing performance degradation and ensuring disaster resilience?
- Configure Azure Cosmos DB with multi-region writes. Select DeviceId as the partition key. Configure Session consistency, enable zone-redundant backup storage (ZRS) for recovery, and use short-lived Shared Access Signatures (SAS) linked to a stored access policy for diagnostic data export.Answer
- BConfigure Azure Cosmos DB with multi-region writes. Select DeviceStatus as the partition key. Configure Session consistency, enable zone-redundant backup storage (ZRS) for recovery, and use short-lived Shared Access Signatures (SAS) linked to a stored access policy for diagnostic data export.
- CConfigure Azure Cosmos DB with multi-region writes. Select DeviceId as the partition key. Configure Session consistency, enable locally redundant backup storage (LRS) for recovery, and use short-lived Shared Access Signatures (SAS) linked to a stored access policy for diagnostic data export.
- DConfigure Azure Cosmos DB with multi-region writes. Select DeviceId as the partition key. Configure Session consistency, enable zone-redundant backup storage (ZRS) for recovery, and generate an ad-hoc Shared Access Signature (SAS) token with a two-year expiration duration for diagnostic data export.
Answer
Configure Azure Cosmos DB with multi-region writes, using DeviceId as the partition key, Session consistency, zone-redundant backup storage (ZRS), and short-lived Shared Access Signatures (SAS) linked to a stored access policy.
The correct configuration uses DeviceId as the partition key to ensure a high-cardinality distribution of data, preventing hot partitions. It uses Session consistency which is fully supported under multi-region write configurations in Azure Cosmos DB. Zone-redundant storage (ZRS) backups guarantee regional disaster resilience, and SAS tokens governed by a stored access policy ensure secure, revocable access to diagnostic exports.
Step-by-Step Solution
Key Concept
Azure Cosmos DB partition key selection, consistency levels under multi-region writes, and storage backup redundancy.