MongoDB DBA Replication Management Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What happens to write operations if the PRIMARY node fails and no secondary is elected?

Explanation

Without an elected PRIMARY, the replica set has no node authorized to accept writes. Write requests therefore fail and return an error until a new PRIMARY is elected; they are not automatically queued or redirected to an arbiter.

Submit
Please wait...
About This Quiz
MongoDB DBA Replication Management Quiz - Quiz

This quiz evaluates your understanding of MongoDB replication architecture, replica set configuration, and management best practices. It covers replica set topology, failover mechanisms, data synchronization, and operational tasks essential for managing highly available MongoDB deployments. Ideal for database administrators preparing for the MongoDB Associate DBA certification.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In replica set replication, the ____ is the member receiving and applying data from the PRIMARY.

Explanation

In a replica set, the secondary member receives replicated operations from the primary and applies them to its own data set. This keeps its data synchronized with the primary and allows it to provide redundancy or take over if the primary becomes unavailable.

Submit

3. Which command removes a member from a replica set?

Explanation

`rs.remove()` removes a specified member from a MongoDB replica set’s configuration. It is typically run on the primary, with the member’s host address supplied as an argument. The other listed commands are not the standard replica-set helper for removing a member.

Submit

4. True or False: Write concern 'majority' ensures data is written to the PRIMARY and at least one secondary before acknowledging.

Explanation

`majority` waits until the write is acknowledged by a majority of the replica set’s voting members, so it does not universally require both the primary and a secondary. The required number depends on the replica-set configuration; for example, a single-member set can satisfy majority with the primary alone.

Submit

5. What is the purpose of the HIDDEN member type in MongoDB?

Explanation

A hidden member maintains a copy of the data and participates in replication, but it is not visible to applications for read operations. This lets it serve roles such as backups or reporting without affecting normal query traffic.

Submit

6. True or False: A secondary member with priority 0 can be elected as PRIMARY.

Explanation

A replica set member with priority 0 is ineligible to become primary, regardless of its health or data state. Its configuration explicitly prevents it from winning an election, though it can still replicate data and serve reads, depending on settings. Members with a positive priority are eligible candidates during an election.

Submit

7. Which parameter in the replica set configuration controls the priority for election?

Explanation

The `priority` parameter influences which replica set member is most likely to be elected primary. Members with higher priority are favored in elections, while a member with priority 0 cannot become primary.

Submit

8. What does INITIAL SYNC do for a new replica set member?

Explanation

Initial sync brings a new replica set member up to date by copying the primary’s data, then applying ongoing changes from the oplog. This gives the member a complete dataset so it can participate in replication.

Submit

9. In a replica set with 5 members, what is the minimum number needed to form a quorum for elections?

Explanation

A quorum for an election requires a majority of the replica set’s voting members. With five voting members, more than half means at least three must participate, allowing the set to elect a leader while preventing competing leaders from being elected by separate groups.

Submit

10. Which MongoDB command displays the current replica set status and member health?

Explanation

`rs.status()` provides detailed information about the current replica set, including its members, their states, and health indicators. It helps administrators monitor replication and identify issues with individual members.

Submit

11. What is the primary purpose of a replica set in MongoDB?

Explanation

A MongoDB replica set maintains multiple copies of the same data across servers. If the primary server becomes unavailable, the set can automatically elect a new primary, helping keep the database available and resilient to failures.

Submit

12. How do you add a new member to an existing replica set?

Explanation

Use the `rs.add()` method to add a member to an existing MongoDB replica set, specifying the new member’s hostname and port. This updates the replica set configuration without requiring manual file edits or creating a new replica set.

Submit

13. What is the default election timeout for a MongoDB replica set?

Explanation

MongoDB replica sets use a default election timeout of 10 seconds. If a primary becomes unavailable, the other members wait for this interval without receiving a heartbeat before starting an election to choose a new primary.

Submit

14. Which read preference mode routes queries only to secondary nodes?

Explanation

The `secondary` read preference directs queries exclusively to secondary replica-set members. If no secondary is available, the read cannot be routed to a node.

Submit

15. In replica set replication, what term describes the delay between the PRIMARY writing data and a SECONDARY applying it?

Explanation

Replication lag is the time difference between when the PRIMARY records a change and when a SECONDARY applies that change. It reflects how far behind the secondary is in processing replicated data.

Submit

16. What is the oplog in MongoDB?

Explanation

MongoDB’s oplog, or operations log, is a capped collection in the local database that records write operations performed on a replica set’s primary. Secondary members read these entries and apply them in order to keep their data synchronized. Because it is capped, older entries may eventually be overwritten as new operations are recorded.

Submit

17. Which command initiates the replica set configuration in MongoDB?

Explanation

MongoDB initializes a replica set with `rs.initiate()`, which applies the replica set configuration on the current server. `rs.init()` is not a valid MongoDB command, so the supplied answer appears to contain a typo.

Submit

18. What is an ARBITER in a MongoDB replica set?

Explanation

An arbiter is a lightweight member of a MongoDB replica set that participates in elections by casting a vote but does not hold a copy of the dataset. It can help the set reach a voting majority when the number of data-bearing members is even, but it cannot become the primary.

Submit

19. How many members are required for a replica set to achieve automatic failover?

Explanation

A replica set needs at least three voting members so that, if the primary becomes unavailable, the remaining members can form a majority and elect a new primary. With only two voting members, losing one prevents the other from achieving a majority, so automatic failover cannot reliably occur. A voting member may be a data-bearing node or an arbiter.

Submit

20. In a MongoDB replica set, what role does the PRIMARY node perform?

Explanation

The PRIMARY node is the replica set’s main point for write operations. It records changes in its operation log and replicates them to secondary nodes, which can apply those changes to stay synchronized.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What happens to write operations if the PRIMARY node fails and no...
In replica set replication, the ____ is the member receiving and...
Which command removes a member from a replica set?
True or False: Write concern 'majority' ensures data is written to the...
What is the purpose of the HIDDEN member type in MongoDB?
True or False: A secondary member with priority 0 can be elected as...
Which parameter in the replica set configuration controls the priority...
What does INITIAL SYNC do for a new replica set member?
In a replica set with 5 members, what is the minimum number needed to...
Which MongoDB command displays the current replica set status and...
What is the primary purpose of a replica set in MongoDB?
How do you add a new member to an existing replica set?
What is the default election timeout for a MongoDB replica set?
Which read preference mode routes queries only to secondary nodes?
In replica set replication, what term describes the delay between the...
What is the oplog in MongoDB?
Which command initiates the replica set configuration in MongoDB?
What is an ARBITER in a MongoDB replica set?
How many members are required for a replica set to achieve automatic...
In a MongoDB replica set, what role does the PRIMARY node perform?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!