Skip to main content
InterviewHubPRO
Section Overview
Q33

Question 33 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

66%
MongoDB & NoSQL (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is the difference between a Hidden and a Secondary node in a Replica Set?

senior LevelmongodbAdvanced Internals

In Simple Words:

  • Standard Secondary: Receives writes, votes in elections, and can be queried by clients using readPreference: "secondary".
  • Hidden Node (hidden: true, priority: 0): Copies oplog and holds full data, but is invisible to client applications and can never be elected Primary.
  • Ideal for running heavy background analytics, daily reporting dumps, or dedicated backup jobs without impacting customer traffic.