exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 16 question 32 discussion

Actual exam question from Microsoft's AZ-300
Question #: 32
Topic #: 16
[All AZ-300 Questions]

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. Regenerate the keys for Account1.
  • B. Create a new container in DB1.
  • C. Delete Container1.
  • D. Implement the Azure Cosmos DB .NET SDK.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
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".
Incorrect Answers:
A: It is not possible to "update" your partition key in an existing container.
Reference:
https://devblogs.microsoft.com/cosmosdb/how-to-change-your-partition-key/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ben1001
Highly Voted 4 years, 9 months ago
last question ... you made it! Yay!
upvoted 7 times
Freddo
4 years, 9 months ago
Finally! :)
upvoted 2 times
...
...
Ayexco
Highly Voted 4 years, 10 months ago
Correct
upvoted 6 times
...
AbroRulZ
Most Recent 4 years, 5 months ago
We made it !
upvoted 1 times
...
IvanDan
4 years, 6 months ago
Congrats Robots. We made it!
upvoted 1 times
...
orcruin
4 years, 7 months ago
I made it too! ;-) Thx to all other travelers
upvoted 1 times
orcruin
4 years, 7 months ago
duplicate, proposed solution is correct
upvoted 1 times
...
...
Blaaa
4 years, 9 months ago
finally!!
upvoted 1 times
...
jjjw
4 years, 9 months ago
Last question, yay
upvoted 1 times
...
triptimandal01
4 years, 9 months ago
duplicate again since past 2 pages!
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...