C100DBA · Question #95
Mongodb does provide high availability via which option?
The correct answer is A. Replication. MongoDB achieves high availability through Replication (A), specifically via Replica Sets - a group of MongoDB instances that maintain the same dataset, where a primary node handles writes and secondary nodes automatically take over (failover) if the primary goes down, ensuring c
Question
Mongodb does provide high availability via which option?
Options
- AReplication
- BIndexing
- CSharding
- DJournaling
How the community answered
(41 responses)- A93% (38)
- B5% (2)
- D2% (1)
Explanation
MongoDB achieves high availability through Replication (A), specifically via Replica Sets - a group of MongoDB instances that maintain the same dataset, where a primary node handles writes and secondary nodes automatically take over (failover) if the primary goes down, ensuring continuous availability.
- B (Indexing) improves query performance and lookup speed, not availability - the database can still go down even with perfect indexes.
- C (Sharding) addresses scalability by distributing data across multiple servers to handle large datasets and high throughput, not redundancy or failover.
- D (Journaling) provides durability by logging write operations so data can be recovered after a crash - it helps with data integrity, not uptime across node failures.
Memory tip: Think "Replication = Redundancy = Reliability" - having multiple copies of your data means one node can fail without taking the service down.
Topics
Community Discussion
No community discussion yet for this question.