Databases · Middle · Question 50 of 75
Does MongoDB support multi-document transactions?
- 1No, never
- 2Only for documents smaller than 1 KB
- ✓Correct answer: Yes, on replica sets and sharded clusters, though a good document design often makes them unnecessary
Explanation
Single-document writes are always atomic. Multi-document transactions add overhead and have time limits, so don't model data as if it were relational.