nerdexam
MongoDB

C100DBA · Question #98

Which of the following does MongoDB use to provide High Availability and fault tolerance?

The correct answer is C. Replication. Replication is MongoDB's mechanism for High Availability and fault tolerance - it works by maintaining multiple copies of your data across a Replica Set (a group of mongod instances), so if the primary node fails, an automatic election promotes a secondary to take over with no…

Replication

Question

Which of the following does MongoDB use to provide High Availability and fault tolerance?

Options

  • ASharding
  • BIndexing
  • CReplication
  • DWrite Concern

How the community answered

(27 responses)
  • A
    4% (1)
  • C
    93% (25)
  • D
    4% (1)

Explanation

Replication is MongoDB's mechanism for High Availability and fault tolerance - it works by maintaining multiple copies of your data across a Replica Set (a group of mongod instances), so if the primary node fails, an automatic election promotes a secondary to take over with no data loss.

  • A (Sharding) is about horizontal scaling and distributing data across multiple servers to handle large datasets and high throughput - it improves performance and capacity, not fault tolerance.
  • B (Indexing) speeds up query execution by creating data structures for faster lookups - purely a read/write performance feature.
  • D (Write Concern) controls how many nodes must acknowledge a write before it's confirmed - it influences durability guarantees for individual operations, but is not itself the HA mechanism.

Memory tip: Think "Replication = Redundancy = Recovery" - the three R's that make your database survive node failures.

Topics

#high availability#fault tolerance#replication

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice