Google News
logo
MongoDB - Quiz(MCQ)
______ runs a database command against the admin database of a mongos instance.
A)
sh._check()
B)
sh._checkFullName()
C)
sh.getBalancerLockDetails()
D)
sh._adminCommand()

Correct Answer :   sh._adminCommand()


Explanation : sh._adminCommand() runs a database command against the admin database, like db.runCommand(), but can confirm that it is issued against a mongos.

Advertisement