What should you do first?

Posted by: Pdfprep Category: AZ-303 Tags: , ,

You have an Azure Cosmos DB account named Account1. Account1 includes a database named DB1 that contains a container named Container1. The partition key for Container1 is set to /city.

You plan to change the partition key for Container1.

What should you do first?
A . Delete Container1.
B . Create a new Azure Cosmos DB account.
C . Implement the Azure Cosmos D
D . NE
E . SD
G . Regenerate the keys for Account1.

Answer: B

Explanation:

The Change Feed Processor and Bulk Executor Library, in Azure Cosmos DB can be leveraged to achieve a live migration of your data from one container to another. This allows you to re-distribute your data to match the desired new partition key scheme, and make the relevant application changes afterwards, thus achieving the effect of “updating your partition key”.

Reference: https://devblogs.microsoft.com/cosmosdb/how-to-change-your-partition-key/

Leave a Reply

Your email address will not be published.