An online education provider is designing a telemetry storage solution using Azure Cosmos DB for NoSQL to record real-time progress events from students globally. The solution must handle a write-heavy workload ( writes, reads) with an ingestion rate of thousands of events per second. The database must be replicated across three Azure regions to guarantee a read and write availability SLA. The primary query pattern retrieves all activity logs for a specific course to generate completion reports. You need to design a storage and security configuration that prevents hot partitions, ensures write scalability, and complies with security best practices. Which configuration should you recommend?
- ASelect courseId as the partition key, and configure the Cosmos DB account with multi-region writes enabled across all three regions.
- BSelect studentId as the partition key, and host the database in a single region using Locally Redundant Storage (LRS) to minimize replication costs.
- Select studentId as the partition key, and configure the Cosmos DB account with multi-region writes enabled across all three regions.Cevap
- DSelect studentId as the partition key, enable multi-region writes, and authorize client writes using a Shared Access Signature (SAS) token configured with a three-year lifetime and no stored access policy.
Cevap
Select studentId as the partition key, and configure the Cosmos DB account with multi-region writes enabled across all three regions.
Selecting the student ID as the partition key provides high cardinality, distributing the write workload evenly across physical partitions. This avoids hot partitions. Enabling multi-region writes satisfies the 99.999% write availability SLA by allowing local writes in all three regions.
Adım Adım Çözüm
Anahtar Kavram
Azure Cosmos DB partitioning strategies, multi-region write availability, and security access controls.
Tahmini Süre:1m 30s