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 Container 1. The partition key tor 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 container in DB1 account.
C . Regenerate the keys for Account1.
D . Implement the Azure CosmosD
E . NET SDK

Answer: B

Explanation:

The good news is that there are two features, the Change Feed Processor and Bulk Executor Library, in Azure Cosmos DB that 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.