nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

MongoDB/Replication

Keep multiple copies of your MongoDB data so your application can survive a server failure.

15 QuestionsAdvancedHigh Priority ~12 min read

MongoDB replication keeps multiple copies of the same data across different servers. A replica set normally has a primary that accepts writes and secondary members that replicate the primary's data.

If the primary becomes unavailable, MongoDB can elect another eligible member as the new primary. Replication improves availability and can also support certain read-scaling patterns, but it does not mean every read or write is automatically distributed across all servers.

What you'll walk away knowing

How MongoDB replica sets work
How primary and secondary members interact
How elections and automatic failover work
How replication affects read preferences and write concerns
1You are running a 3-node replica set across two data centers (2 nodes in DC-A, 1 node in DC-B). If the network link between the DCs breaks, what happens to your application's ability to write?Intermediate2Explain the 'Oplog' (Operations Log) architecture. What happens if the Oplog is too small?Intermediate3When would you use a 'Delayed Member' or a 'Hidden Member'?Intermediate4How does 'Read Preference' differ from 'Read Concern'?Intermediate5Deep dive into Write Concern. What happens under the hood when you use { w: 'majority', j: true }?Advanced6Discuss replication in MongoDB?Intermediate7What is Replica Set?Intermediate8Explain how the Raft consensus algorithm works within MongoDB Replication.Advanced9What are replica set members?Intermediate10What is a 'Rollback' in the context of a replica set, and how do you minimize its occurrence?Intermediate11What is 'Replication Lag' and what are the top three reasons it occurs in a Node.js-backed system?Intermediate
All Topics
1
Basics
CRUD
Bulk Operations
2
Indexing
Data Modelling
3
Transactions
Aggregation
4
Replication
Sharding
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.