QuestionQ202

VerifiedDevelop for Azure storage

You are developing an Azure Cosmos DB solution using the Azure Cosmos DB SQL API. The data contains millions of documents, and each document can contain hundreds of properties.

The document properties do not have distinct values suitable for partitioning. Azure Cosmos DB must scale individual containers in the database to satisfy the application's performance requirements by distributing the workload evenly across all partitions over time.

You need to choose a partition key.

Which two partition keys can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Choose two
Explanation

Synthetic partition keys provide adequate cardinality and distribution when no single property is sufficiently distinct. Concatenating multiple property values with a random suffix spreads writes across partition-key values, and appending a calculated hash suffix similarly distributes workload while allowing the suffix to be reproduced for targeted reads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!