MongoDB interview questions part 40

MongoDB interview questions part 40

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

Total Questions: 20

1. All other instances, secondaries, apply operations from the _________ so that they have the same data set.

Correct Answer is : primary

2. A replica set can have only ________ primary.

Correct Answer is : One

3. Point out the wrong statement :

Correct Answer is : In all cases, you can use replication to increase read capacity

4. To support replication, the primary records all changes to its data sets in its _______.

Correct Answer is : oplog

5. You may add an extra mongod instance to a replica set as an :

Correct Answer is : arbiter

6. An arbiter will always be an arbiter whereas a primary may step down and become a secondary and a _________ may become the primary during an election.

Correct Answer is : secondary

7. When a primary does not communicate with the other members of the set for more than ____ seconds, the replica set will attempt to select another member to become the new primary.

Correct Answer is : 10

8. When a replica set has one and only one primary, reads from that primary provide ______ consistency.

Correct Answer is : strict

9. _________ shut down the mongod instance for one of the non-primary members of your replica set.

Correct Answer is : db.shutdownServer()

10. Point out the wrong statement:

Correct Answer is : None of the mentioned

11. To finish the rolling maintenance operation, step down the primary with the _________ method

Correct Answer is : rs.stepDown()

12. You also can force a member never to become primary by setting its priority value to :

Correct Answer is : 0

13. Point out the correct statement :

Correct Answer is : All of the mentioned

14. A replica set member becomes _________ when its replication process falls so far behind that the primary overwrites oplog entries the member has not yet replicated.

Correct Answer is : stale

15. During initial sync, mongod will remove the content of the _______.

Correct Answer is : dbPath

16. You cannot use a _________backup for the data files, only a snapshot backup.

Correct Answer is : mongodump

17. You can use the ________ setting in Replica Set Configuration to disable chained replication for situations where chained replication is causing lag.

Correct Answer is : chainingAllowed

18. For most replica sets, the hostnames in the _________ field never change.

Correct Answer is : host

19. Which of the following ddds an arbiter to a replica set ?

Correct Answer is : rs.addArb()

20. Point out the wrong statement:

Correct Answer is : rs.init() initializes a new replica set

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon