How can you change the shard key of a collection in MongoDB? - Study24x7
Social learning Network
5 followers study24x7 08 Jan 2025 10:51 AM study24x7 study24x7

How can you change the shard key of a collection in MongoDB?

A

By using the sh.moveChunk() command

B

By dropping and recreating the collection

C

By updating the shard key in the collection settings

D

Shard keys cannot be changed

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles