MongoDB interview questions part 41

MongoDB interview questions part 41

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.

Correct Answer is : rs.freeze()

2. _________ returns the replica set configuration document.

Correct Answer is : rs.conf()

3. Point out the correct statement :

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.

Correct Answer is : rs.printReplicationInfo()

5. _________ re-configures a replica set by applying a new replica set configuration object.

Correct Answer is : rs.reconfig()

6. __________ sets the member that this replica set member will sync from, overriding the default sync target selection logic.

Correct Answer is : rs.syncFrom()

7. rs.reconfig() provides a wrapper around the ___________ command

Correct Answer is : replSetReconfig

8. ________ sets the slaveOk property for the current connection.

Correct Answer is : rs.slaveOk()

9. Before mongod creates an oplog, you can specify its size with the __________ option.

Correct Answer is : oplogSizeMB

10. Point out the wrong statement:

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 ____________

Correct Answer is : idempotency

12. Use _________ from a secondary member and the replication status output to assess the current state of replication

Correct Answer is : db.getReplicationInfo()

13. Point out the correct statement :

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.

Correct Answer is : buildIndexes

15. Secondaries apply operations from the primary asynchronously to provide __________ consistency.

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.

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.

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.

Correct Answer is : slaveDelay

19. Replica set configuration requires that the _______ have a value that is consistent among all members of the set.

Correct Answer is : replSetName

20. Point out the correct statement :

Correct Answer is : All of the mentioned

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon