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.