JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 44
MongoDB interview questions part 44
Back
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.
A. sh._checkMongos()
B. sh.addShard()
C. sh._lastMigration()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh._checkMongos()
2. _______ reports on the active balancer lock, if it exists.
A. sh._checkFullName()
B. sh._adminCommand()
C. sh.getBalancerLockDetails()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.getBalancerLockDetails()
3. Point out the wrong statement :
A. The best way to ensure a field has unique values is to generate universally unique identifiers (UUID,) such as MongoDB’s ‘ObjectId values
B. Most deployments will not need to shard the files collection
C. The files collection is typically small, and only contains metadata
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
4. _________ reports on the last chunk migration.
A. sh._checkMongos()
B. sh.addShard()
C. sh._lastMigration()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh._lastMigration()
5. _________ removes an association between a range shard keys and a shard tag.
A. sh.removeTagRange()
B. sh._checkMongos()
C. sh.disableBalancing()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
sh.removeTagRange()
6. _________ disable balancing on a single collection in a sharded database.
A. sh.removeTagRange()
B. sh._checkMongos()
C. sh.disableBalancing()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
sh.disableBalancing()
7. _______ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().
A. sh.getBalancerHost()
B. sh.enableBalancing()
C. sh.enableSharding()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.getBalancerHost()
8. ________ returns a boolean to report if the balancer is currently enabled.
A. sh.getBalancerHost()
B. sh.enableBalancing()
C. sh.getBalancerState()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
sh.getBalancerState()
9. _______ enables the balancer and waits for balancing to start.
A. sh.waitForBalancer()
B. sh.startBalancer()
C. sh.waitForDLock()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.startBalancer()
10. Point out the correct statement:
A. sh.deadForDLock() waits for a specified distributed sharded cluster lock
B. sh.waitForBalancerOff() waits until the balancer stops running
C. sh.statusserver() reports on the status of a sharded cluster, as db.printShardingStatus()
D. all of the mentioned
Show Correct Answer
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.
A. sh.waitForBalancer()
B. sh.startBalancer()
C. sh.waitForPingChange()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.waitForPingChange()
12. _______ forces an update to the cluster metadata cached by a mongos.
A. config
B. flushconf
C. flushRouterConfig
D. all of the mentioned
Show Correct Answer
Correct Answer is :
flushRouterConfig
13. Point out the wrong statement :
A. moveChunks provides the ability to combine chunks on a single shard
B. setShardVersion is used to set the config server version
C. shardCollection enables the sharding functionality for a collection, allowing the collection to be sharded
D. none of the mentioned
Show Correct Answer
Correct Answer is :
none of the mentioned
14. Which of the following command that validates index on shard key ?
A. checkShardingIndex
B. checkSIndex
C. enableSharding
D. all of the mentioned
Show Correct Answer
Correct Answer is :
checkShardingIndex
15. Which of the following command is used to determine split points ?
A. splitVector
B. medianKey
C. movePrimary
D. none of the mentioned
Show Correct Answer
Correct Answer is :
splitVector
16. You can only issue listShards against the ________ database.
A. local
B. admin
C. temp
D. none of the mentioned
Show Correct Answer
Correct Answer is :
admin
17. _________ is an internal command that supports the sharding functionality.
A. getBalancerHost()
B. getShardMap
C. enableSharding()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
getShardMap
18. ________ command verifies that a process is a mongos.
A. medianKey
B. isdbgrid
C. movePrimary
D. none of the mentioned
Show Correct Answer
Correct Answer is :
isdbgrid
19. Split empty chunks in your collection by manually performing the ______ command on chunks.
A. distrbute
B. split
C. change
D. all of the mentioned
Show Correct Answer
Correct Answer is :
split
20. Point out the correct statement:
A. Pre-splitting the chunk ranges in an empty sharded collection allows clients to insert data into an already partitioned collection
B. MongoDB cannot create enough chunks or distribute data fast enough to support required throughput
C. Chunk migration does not require copying all the data in the chunk from one shard to another
D. All of the mentioned
Show Correct Answer
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
Find Jobs