C100DBA · Question #99
Which of the following is supported by MongoDB?
The correct answer is C. Journaling. Journaling is a core MongoDB feature where write operations are recorded to an on-disk journal before being applied to data files, enabling crash recovery and data durability - this has been part of MongoDB since early versions. Why the distractors are wrong: A (Transaction Manag
Question
Which of the following is supported by MongoDB?
Options
- ATransaction Management
- BACID Transactions
- CJournaling
- DRelationships between Collections (Primary Key Foreign Key)
How the community answered
(19 responses)- A5% (1)
- C89% (17)
- D5% (1)
Explanation
Journaling is a core MongoDB feature where write operations are recorded to an on-disk journal before being applied to data files, enabling crash recovery and data durability - this has been part of MongoDB since early versions.
Why the distractors are wrong:
- A (Transaction Management) - MongoDB traditionally lacks multi-document transaction management in the relational DBMS sense; its design prioritizes document-level atomicity instead. (Multi-document transactions were added in v4.0, but classic exam questions predate this.)
- B (ACID Transactions) - MongoDB is generally classified as a BASE (Basically Available, Soft state, Eventually consistent) system, not ACID-compliant in the traditional relational sense, especially across multiple documents or collections.
- D (Relationships via PK/FK) - MongoDB is a NoSQL document store; it does not enforce referential integrity or Primary Key/Foreign Key constraints between collections. References between documents are by convention, not enforced by the database.
Memory tip: Think of MongoDB's journal like a "flight recorder" - it logs every operation so the database can replay or undo writes after a crash. The other options (ACID, transactions, FK relationships) are hallmarks of relational databases like MySQL or PostgreSQL, not document stores like MongoDB.
Topics
Community Discussion
No community discussion yet for this question.