MongoDB card review1 min read
hardWhat 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.