1.

________ tests to see if the mongo shell is connected to a mongos instance.(a) sh._checkMongos()(b) sh.addShard()(c) sh._lastMigration()(d) all of the mentionedThis question was posed to me by my college director while I was bunking the class.Question is taken from Sharded Cluster Data Management in division Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer» CORRECT OPTION is (a) sh._checkMongos()

Explanation: The sh._checkMongos() method throws an error message if the mongo shell is not CONNECTED to a mongos INSTANCE.


Discussion

No Comment Found

Related InterviewSolutions