1.

_________ reports on the last chunk migration.(a) sh._checkMongos()(b) sh.addShard()(c) sh._lastMigration()(d) all of the mentionedThe question was asked in an interview for internship.I want to ask this question from Sharded Cluster Data Management topic in division Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer»

The correct CHOICE is (c) sh._lastMigration()

Best EXPLANATION: The sh._lastMigration() method returns a document with details about the LAST migration performed on the database or COLLECTION.



Discussion

No Comment Found

Related InterviewSolutions