MongoDB card reviewhard

What happens when the MongoDB primary node fails?

When the primary node fails, replica set members automatically start an election to choose a new primary. The new primary accepts writes while secondary nodes continue replication, providing high availability.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.