JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 49
MongoDB interview questions part 49
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ________ returns a document that reports on the status of the replica set.
A. replSetGetStatus
B. replSetFreeze
C. replSetInitiate
D. all of the mentioned
Show Correct Answer
Correct Answer is :
replSetGetStatus
2. __________ enables or disables a maintenance mode, which puts a secondary node in a RECOVERING state.
A. replSetReconfig
B. replSetMaintenance
C. replSetStepDown
D. all of the mentioned
Show Correct Answer
Correct Answer is :
replSetMaintenance
3. Point out the correct statement :
A. To affect the sync target for the initial sync, run rs.syn() operation before initial sync
B. If you run rs.syncFrom() during initial sync, MongoDB produces no error messages
C. replSetSyncFrom and rs.syncFrom() provide a permanent override of default behavior
D. All of the mentioned
Show Correct Answer
Correct Answer is :
If you run rs.syncFrom() during initial sync, MongoDB produces no error messages
4. When enabled replSetMaintenance: true, the member enters the ________ state.
A. REPLICATING
B. RECOVERING
C. STALE
D. All of the mentioned
Show Correct Answer
Correct Answer is :
RECOVERING
5. ________ applies a new configuration to an existing replica set.
A. replSetReconfig
B. replSetMaintenance
C. replSetStepDown
D. all of the mentioned
Show Correct Answer
Correct Answer is :
replSetReconfig
6. Which of the command is for master-slave replication only ?
A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Show Correct Answer
Correct Answer is :
resync
7. _______ is an internal command that applies oplog entries to the current data set.
A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Show Correct Answer
Correct Answer is :
applyOps
8. __________ explicitly override the default logic for selecting a member to replicate from.
A. replSetSyncFrom
B. resync
C. applyOps
D. isMaster
Show Correct Answer
Correct Answer is :
replSetSyncFrom
9. The preferred way to clear the _________ flag from a chunk is to attempt to split the chunk.
A. boolean
B. jumbo
C. change
D. all of the mentioned
Show Correct Answer
Correct Answer is :
jumbo
10. Point out the correct statement:
A. In some instances, MongoDB cannot split the no-longer jumbo chunk, such as a chunk with a range of single shard key value
B. To ensure that mongos instances update their cluster information cache, run flushConfig in the admin database
C. In a sharded cluster, you cannot use tags to associate specific ranges of a shard key with a specific shard or subset of shards
D. All of the mentioned
Show Correct Answer
Correct Answer is :
In some instances, MongoDB cannot split the no-longer jumbo chunk, such as a chunk with a range of single shard key value
11. _________ is used to remove tags from a particular shard.
A. sh.removeTag()
B. sh.removeShard()
C. sh.removeShardTag()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.removeShardTag()
12. ________ associates a shard with a tag or identifier.
A. sh.collects()
B. sh.addShardTag
C. sh.results()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.addShardTag
13. Point out the wrong statement :
A. You cannot overlap defined ranges, or tag the same range more than once
B. The mongod provides a helper for removing a tag range
C. The output from sh.status() lists tags associated with a shard, if any, for each shard
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The mongod provides a helper for removing a tag range
14. To assign a tag to a range of shard keys use the _________ method when connected to a mongos instance.
A. sh.addTagRange()
B. sh.splitFind()
C. sh.Range()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.addTagRange()
15. Each document in the tags holds the ________ of the sharded collection and a minimum shard key value.
A. tag
B. chunk
C. namespace
D. size
Show Correct Answer
Correct Answer is :
namespace
16. Which of the following parameter represents minimum value of the shard key range to include in the tag ?
A. min
B. max
C. maximum
D. minimum
Show Correct Answer
Correct Answer is :
minimum
17. Use ________ to ensure that the balancer migrates documents that exist within the specified range to a specific shard .
A. sh.addShardTag()
B. sh.addTag()
C. sh.aShardTag()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sh.addShardTag()
18. Which of the following parameter denotes name of the shard from which to remove a tag ?
A. shard
B. tag
C. chunk
D. none of the mentioned
Show Correct Answer
Correct Answer is :
shard
19. To view a role’s information, you must be explicitly granted the role or must have the _________ action on the role’s database.
A. viewUser
B. viewRole
C. grantRole
D. none of the mentioned
Show Correct Answer
Correct Answer is :
viewRole
20. Point out the correct statement :
A. To provide user administrators, MongoDB has userAdmin and userAdminAnyDatabase roles
B. A user administrator can grant any privilege in the database and can create new ones
C. Specifically, a user with the userAdmin role can grant itself any privilege in the database
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
Similar Interview Questions
Search for latest jobs
Find Jobs