JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 41
MongoDB interview questions part 41
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. _________ prevents the current member from seeking election as primary for a period of time.
A. rs.freeze()
B. rs.conf()
C. rs.printReplicationInfo()
D. Secondary
Show Correct Answer
Correct Answer is :
rs.freeze()
2. _________ returns the replica set configuration document.
A. rs.freeze()
B. rs.conf()
C. rs.printReplicationInfo()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rs.conf()
3. Point out the correct statement :
A. rs.printinfo() prints a formatted report of the replica set member’s oplog
B. The output of rs.printReplicationInfo() is identical to that of db.printReplicationInfo()
C. rs.printReplicationInfo() formats and prints the data returned by db.allReplicationInfo()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
The output of rs.printReplicationInfo() is identical to that of db.printReplicationInfo()
4. ________ prints a report of the status of the replica set from the perspective of the primary.
A. rs.freeze()
B. rs.printconf()
C. rs.printReplicationInfo()
D. secondary
Show Correct Answer
Correct Answer is :
rs.printReplicationInfo()
5. _________ re-configures a replica set by applying a new replica set configuration object.
A. rs.reconfig()
B. rs.remove()
C. rs.stepDown()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rs.reconfig()
6. __________ sets the member that this replica set member will sync from, overriding the default sync target selection logic.
A. rs.reconfig()
B. rs.remove()
C. rs.stepDown()
D. rs.syncFrom()
Show Correct Answer
Correct Answer is :
rs.syncFrom()
7. rs.reconfig() provides a wrapper around the ___________ command
A. replSetfinalReconfig
B. replSetReconfig
C. replSetReconfiguration
D. none of the mentioned
Show Correct Answer
Correct Answer is :
replSetReconfig
8. ________ sets the slaveOk property for the current connection.
A. rs.reconfig()
B. rs.slaveOk()
C. rs.stepDown()
D. rs.slave()
Show Correct Answer
Correct Answer is :
rs.slaveOk()
9. Before mongod creates an oplog, you can specify its size with the __________ option.
A. oplogSizeMB
B. oplogSizeGB
C. opSizeMB
D. all of the mentioned
Show Correct Answer
Correct Answer is :
oplogSizeMB
10. Point out the wrong statement:
A. The oplog is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases
B. MongoDB applies database operations on the primary and then records the operations on the primary’s oplog
C. The primary members then copy and apply these operations in an asynchronous process
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The primary members then copy and apply these operations in an asynchronous process
11. The oplog must translate multi-updates into individual operations in order to maintain ____________
A. availability
B. idempotency
C. scalability
D. secondary
Show Correct Answer
Correct Answer is :
idempotency
12. Use _________ from a secondary member and the replication status output to assess the current state of replication
A. db.getReplInfo()
B. db.getReplicationInfo()
C. rs.printReplicationInfo()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
db.getReplicationInfo()
13. Point out the correct statement :
A. To facilitate replication, all replica set members send heartbeats (pings) to all other members
B. For proper replication operations, entries in the oplog must be idempotent
C. Any member can import oplog entries from any other member
D. All of the mentioned
Show Correct Answer
Correct Answer is :
For proper replication operations, entries in the oplog must be idempotent
14. For a member to sync from another, both members must have the same value for the _________ setting.
A. buildIndexes
B. getIndexes
C. buildpriIndexes
D. secondary
Show Correct Answer
Correct Answer is :
buildIndexes
15. Secondaries apply operations from the primary asynchronously to provide __________ consistency.
A. strict
B. strong
C. eventual
D. none of the mentioned
Show Correct Answer
Correct Answer is :
eventual
16. When ______________ is true, the mongod instance saves all documents migrated from the shard to the moveChunk directory of the storage.dbPath.
A. sharding.archiveChunks
B. sharding.archiveMovedChunks
C. shards.archiveMovedChunks
D. rs.syncFrom()
Show Correct Answer
Correct Answer is :
sharding.archiveMovedChunks
17. Replication _______ is a delay between an operation on the primary and the application of that operation from the oplog to the secondary.
A. lag
B. delay
C. latency
D. none of the mentioned
Show Correct Answer
Correct Answer is :
lag
18. A delayed member may show as 0 seconds behind the primary when the inactivity period on the primary is greater than the ________ value.
A. slaveDelayTime
B. slaveDelay
C. slaveTime
D. rs.slave()
Show Correct Answer
Correct Answer is :
slaveDelay
19. Replica set configuration requires that the _______ have a value that is consistent among all members of the set.
A. replSetName
B. instance
C. MMS
D. all of the mentioned
Show Correct Answer
Correct Answer is :
replSetName
20. Point out the correct statement :
A. Replica set configuration is straightforward
B. Keyfile must be less than one kilobyte in size
C. Keyfile may only contain characters in the base64 set and the file must not have group or “world” permissions on UNIX systems
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
Similar Interview Questions
Search for latest jobs
Find Jobs