Recall & Review
beginner
What is a MongoDB replica set?
A MongoDB replica set is a group of mongod processes that maintain the same data set, providing redundancy and high availability.
Click to reveal answer
beginner
What role does the primary node play in a replica set?
The primary node receives all write operations and replicates data to secondary nodes. It is the main point for data changes.
Click to reveal answer
beginner
How do secondary nodes function in a replica set?
Secondary nodes replicate data from the primary node and can serve read operations if configured. They provide data redundancy.
Click to reveal answer
intermediate
What happens during a primary node failure in a replica set?
The replica set automatically holds an election to select a new primary from the secondary nodes to maintain availability.
Click to reveal answer
intermediate
Why is an arbiter used in a replica set?
An arbiter participates in elections to help choose a primary but does not store data, saving resources while maintaining voting balance.
Click to reveal answer
What is the main responsibility of the primary node in a MongoDB replica set?
✗ Incorrect
The primary node handles all write operations and replicates data to secondary nodes.
What does a secondary node do in a replica set?
✗ Incorrect
Secondary nodes replicate data from the primary to maintain redundancy.
What triggers an election in a MongoDB replica set?
✗ Incorrect
An election is triggered automatically when the primary node fails to select a new primary.
What is the purpose of an arbiter in a replica set?
✗ Incorrect
Arbiters help maintain voting balance during elections but do not store data.
Which of the following is NOT true about replica sets?
✗ Incorrect
Replica sets automatically elect a primary without manual intervention.
Explain the roles of primary, secondary, and arbiter nodes in a MongoDB replica set.
Think about who writes data, who copies it, and who helps decide leadership.
You got /3 concepts.
Describe what happens in a replica set when the primary node fails.
Focus on the failover process and how the system stays online.
You got /4 concepts.