M103 Chapter 3: Sharding Shard Keys


True or False: Shard keys are mutable.

The solution should probably be updated.

Update Field’s Value

Starting in MongoDB 4.2, you can update a document’s shard key value unless the shard key field is the immutable _id field. Before MongoDB 4.2, a document’s shard key field value is immutable.

For details on updating the shard key, see Change a Document’s Shard Key Value.


Yep and still needs updated as of 3/11/2021. Note 4.2 was released Oct 18, 2019

Hi @David_Abigt and @Jai_Hirsch,

Thanks for surfacing this. We will update it as soon as possible.

1 Like