250+ TOP MCQs on Replica Set Members and Answers

MongoDB Multiple Choice Questions on “Replica Set Members”.

1. How many types of members exist in replica set?
a) 1
b) 2
c) 3
d) 4

Answer: b
Clarification: There are two members in replica set-primary and secondary.

2. Point out the wrong statement.
a) Replication provides scalability and increases data redundancy
b) A replica set in MongoDB is a group of mongod processes that provide redundancy and high availability
c) You can also maintain an arbiter as part of a replica set
d) None of the mentioned

Answer: a
Clarification: Data redundancy is reduced by replicating the copies of data.

3. Which of the member receives all write operations?
a) center
b) secondary
c) primary
d) none of the mentioned

Answer: c
Clarification: The primary accepts all write operations from clients.

4. _________ replicate operations from the primary to maintain an identical data set.
a) center
b) secondary
c) primary
d) none of the mentioned

Answer: b
Clarification: Secondaries may have additional configurations for special usage profiles.

5. Point out the wrong statement.
a) The minimum requirements for a replica set are: A primary, a secondary, and an arbiter
b) The primary is the only member in the replica set that receives write operations
c) Most deployments, however, will keep three members that store data: A primary and two secondary members
d) None of the mentioned

Answer: d
Clarification: Secondary members replicate this oplog and apply the operations to their data sets.

6. _________ play a role in the elections that select a primary if the current primary is unavailable.
a) Arbiters
b) Replicators
c) Loggers
d) None of the mentioned

Answer: a
Clarification: Arbiters do not keep a copy of the data.

7. A replica set can have up to ______ members but only 7 voting members.
a) 10
b) 30
c) 50
d) 70

Answer: d
Clarification: In previous versions, replica sets can have up to 12 members.

8. Which of the following may be non-voting or priority 0?
a) center
b) secondary
c) primary
d) none of the mentioned

Answer: b
Clarification: All members of the replica set can accept read operations.

9. If the current primary becomes unavailable, the replica set holds an ______ to choose which of the secondaries becomes the new primary.
a) election
b) replication
c) clasification
d) none of the mentioned

Answer: a
Clarification: A secondary can become a primary.

10. By default, an application directs its ____ operations to the primary member.
a) read
b) write
c) read write
d) all of the mentioned

Answer: a
Clarification: A replica set can have one or more secondaries.

Leave a Reply

Your email address will not be published. Required fields are marked *