Databases · Senior · Question 59 of 75
How do MongoDB write concerns and read concerns relate to consistency?
- 1They choose which index to use
- ✓Correct answer: Write concern sets how many nodes must acknowledge a write (e.g.
majority); read concern sets which data a read may see, e.g. only majority-committed - 3They control query timeouts only
Explanation
With w: 1 a write acknowledged only by the primary can be rolled back after a failover. majority for both gives much stronger guarantees.