MongoDB interview questions part 44

MongoDB interview questions part 44

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. ________ tests to see if the mongo shell is connected to a mongos instance.

Correct Answer is : sh._checkMongos()

2. _______ reports on the active balancer lock, if it exists.

Correct Answer is : sh.getBalancerLockDetails()

3. Point out the wrong statement :

Correct Answer is : None of the mentioned

4. _________ reports on the last chunk migration.

Correct Answer is : sh._lastMigration()

5. _________ removes an association between a range shard keys and a shard tag.

Correct Answer is : sh.removeTagRange()

6. _________ disable balancing on a single collection in a sharded database.

Correct Answer is : sh.disableBalancing()

7. _______ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().

Correct Answer is : sh.getBalancerHost()

8. ________ returns a boolean to report if the balancer is currently enabled.

Correct Answer is : sh.getBalancerState()

9. _______ enables the balancer and waits for balancing to start.

Correct Answer is : sh.startBalancer()

10. Point out the correct statement:

Correct Answer is : sh.deadForDLock() waits for a specified distributed sharded cluster lock

11. _________ waits for a change in ping state from one of the mongos in the sharded cluster.

Correct Answer is : sh.waitForPingChange()

12. _______ forces an update to the cluster metadata cached by a mongos.

Correct Answer is : flushRouterConfig

13. Point out the wrong statement :

Correct Answer is : none of the mentioned

14. Which of the following command that validates index on shard key ?

Correct Answer is : checkShardingIndex

15. Which of the following command is used to determine split points ?

Correct Answer is : splitVector

16. You can only issue listShards against the ________ database.

Correct Answer is : admin

17. _________ is an internal command that supports the sharding functionality.

Correct Answer is : getShardMap

18. ________ command verifies that a process is a mongos.

Correct Answer is : isdbgrid

19. Split empty chunks in your collection by manually performing the ______ command on chunks.

Correct Answer is : split

20. Point out the correct statement:

Correct Answer is : Pre-splitting the chunk ranges in an empty sharded collection allows clients to insert data into an already partitioned collection

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon