A financial services company is designing a global document-sharing platform. The architecture stores document metadata in Azure Cosmos DB for NoSQL and the PDF files in Azure Blob Storage. The system expects a read-to-write ratio, requires a read and write availability SLA, and must survive a regional datacenter outage. The PDF files must be accessible to external clients using temporary, revocable links. Which design combination should you recommend to meet these requirements?
- ASet the Cosmos DB partition key to `documentStatus`, configure Geo-Zone-Redundant Storage (GZRS) for Blob Storage, and generate short-lived Shared Access Signatures (SAS) associated with a stored access policy.
- BSet the Cosmos DB partition key to `contractId`, configure Locally Redundant Storage (LRS) for Blob Storage, and generate short-lived Shared Access Signatures (SAS) associated with a stored access policy.
- Set the Cosmos DB partition key to `contractId`, configure Geo-Zone-Redundant Storage (GZRS) for Blob Storage, and generate short-lived Shared Access Signatures (SAS) associated with a stored access policy.Cevap
- DSet the Cosmos DB partition key to `contractId`, configure Geo-Zone-Redundant Storage (GZRS) for Blob Storage, and generate Shared Access Signatures (SAS) with a multi-year lifetime directly in the URI without a stored access policy.
Cevap
To meet all design requirements, the partition key for Azure Cosmos DB must be a high-cardinality field such as `contractId`. Azure Blob Storage should be configured with Geo-Zone-Redundant Storage (GZRS) to withstand regional disasters. Finally, secure document links must be generated using short-lived Shared Access Signatures (SAS) associated with a stored access policy to support immediate revocation.
The correct design uses a high-cardinality partition key (`contractId`) for Azure Cosmos DB to prevent hot partitions and ensure even distribution of requests. To survive a regional outage, GZRS provides zone-redundancy and geo-redundancy, ensuring data is resilient to regional disasters. For secure and revocable client access, generating short-lived SAS tokens that reference a stored access policy allows the security key to be revoked easily if compromised.
Adım Adım Çözüm
Anahtar Kavram
Designing highly scalable, disaster-resilient, and secure storage solutions using Azure Cosmos DB and Azure Blob Storage.