1.

_______ runs a database command against the admin database of a mongos instance.(a) sh._checkFullName()(b) sh._adminCommand()(c) sh.getBalancerLockDetails()(d) all of the mentionedI had been asked this question during an internship interview.I'm obligated to ask this question of Sharded Cluster Data Management topic in section Sharding Concepts, Mechanics and Sharded Cluster of MongoDB

Answer» CORRECT option is (b) sh._adminCommand()

The best EXPLANATION: sh._adminCommand() runs a database command against the ADMIN database, like db.runCommand(), but can CONFIRM that it is ISSUED against a mongos.


Discussion

No Comment Found

Related InterviewSolutions