Google News
logo
MongoDB - Quiz(MCQ)
_______ tests to see if the mongo shell is connected to a mongos instance.
A)
sh.addShard()
B)
sh._lastMigration()
C)
sh._checkMongos()
D)
All of the above

Correct Answer :   sh._checkMongos()


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

Advertisement