Home »
MCQs »
MongoDB MCQs
MongoDB can provide high availability with replica sets?
18. MongoDB can provide high availability with replica sets?
- True
- False
Answer: A) True
Explanation:
MongoDB can provide high availability through the use of replica sets. A replica set is made up of two or more instances of the mongo DB. Each member of the replica set has the ability to take on the role of either the primary or secondary replica at any time. Essentially, the primary replica is the main servers that interacts with the client and performs all read and write operations on their behalf. Built-in replication is used by the secondary replicas to keep a copy of the data from the primary replicas.