Which two partition...
 
Notifications
Clear all

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

1 Posts
1 Users
0 Likes
163 Views
(@cainsmarshall)
Noble Member
Joined: 2 years ago
Posts: 692
Topic starter  

You are developing an Azure Cosmos DB solution by using the Azure Cosmos DB SQL API. The data includes millions of documents. Each document may contain hundreds of properties.

The properties of the documents do not contain distinct values for partitioning. Azure Cosmos DB must scale individual containers in the database to meet the performance needs of the application by spreading the workload evenly across all partitions over time.

You need to select 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.

  • A . a concatenation of multiple property values with a random suffix appended
  • B . a single property value that does not appear frequently in the documents
  • C . a hash suffix appended to a property value
  • D . a value containing the collection name
  • E . a single property value that appears frequently in the documents

Show Answer Hide Answer

Suggested Answer: A,C

Explanation:

You can form a partition key by concatenating multiple property values into a single artificial partitionKey property. These keys are referred to as synthetic keys.

Another possible strategy to distribute the workload more evenly is to append a random number at the end of the partition key value. When you distribute items in this way, you can perform parallel write operations across partitions.

Note: It's the best practice to have a partition key with many distinct values, such as hundreds or thousands. The goal is to distribute your data and workload evenly across the items associated with these partition key values. If such a property doesn’t exist in your data, you can construct a synthetic partition key.

References: https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-keys

   
Quote

Latest Microsoft AZ-204 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: