You are designing the storage architecture for a global pharmaceutical cold-chain monitoring system. Sensor devices on transport containers in North America, Europe, and Asia write telemetry data (temperature, humidity, and location) every seconds. The read/write ratio is writes and reads. The application requires a write availability SLA, sub- write latency, and must survive regional outages. You decide to use Azure Cosmos DB for NoSQL. Which of the following configurations should you recommend?
- Configure the Azure Cosmos DB account with multi-region writes across the target regions, use a synthetic partition key combining DeviceId and the date-hour (DeviceId_YYYYMMDDHH) for the container, and use Microsoft Entra ID role-based access control (RBAC) to secure database access.Answer
- BConfigure the Azure Cosmos DB account with multi-region writes, partition the container using ShippingStatus to optimize queries filtering by active shipments, and use Microsoft Entra ID RBAC to secure database access.
- CConfigure the Azure Cosmos DB account as a single-region write database with Locally Redundant Storage (LRS) to minimize overhead, deploy regional read replicas with automatic failover, and use a synthetic partition key of DeviceId_YYYYMMDDHH.
- DConfigure the Azure Cosmos DB account with multi-region writes, partition the container using a synthetic key of DeviceId_YYYYMMDDHH, and secure device access to an associated storage account for log updates using a five-year Shared Access Signature (SAS) token configured without a stored access policy.
Answer
Configure the Azure Cosmos DB account with multi-region writes across the target regions, use a synthetic partition key combining DeviceId and the date-hour (DeviceId_YYYYMMDDHH) for the container, and use Microsoft Entra ID role-based access control (RBAC) to secure database access.
The configuration utilizing multi-region writes, a high-cardinality synthetic partition key (DeviceId_YYYYMMDDHH), and Microsoft Entra ID RBAC satisfies the write availability SLA, delivers low-latency writes globally, distributes ingestion traffic evenly across physical partitions, and employs secure modern identity authentication.
Step-by-Step Solution
Key Concept
Designing globally distributed, high-performance, and resilient Azure Cosmos DB architectures using synthetic partition keys and multi-region writes.