C100DBA Philosophy and Features Practice Question
A logistics company uses MongoDB to track shipments. Each shipment document includes a status field and an array of location updates. The company wants to ensure that when a shipment's status changes to "delivered," the corresponding location update is also recorded atomically. Which MongoDB feature best supports this requirement while adhering to the philosophy of document atomicity?
⚠ Common exam trap
The trap here is assuming that multi-document transactions are always required for atomicity, overlooking the power of single-document atomicity when data is embedded.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Single-document atomic operations
Single-document atomic operations allow multiple field updates within one document to be atomic, which is ideal when related data is embedded. By storing location updates within the shipment document, the company can atomically change the status and append a new location in one operation, ensuring consistency without multi-document transactions. This leverages MongoDB's core philosophy of designing documents to match access patterns and using document-level atomicity.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Single-document atomic operations
Why this is correct
MongoDB guarantees atomicity at the single-document level, meaning that updates to multiple fields within one document are atomic. By embedding the location updates array within the shipment document, the company can update both the status and append a location update in a single atomic operation. This aligns with MongoDB's philosophy of leveraging document atomicity to avoid multi-document transactions when possible.
- ✗
Write concern "majority"
Why it's wrong here
Write concern "majority" ensures durability across replica set members but does not provide atomicity across multiple fields or documents. It is about replication acknowledgment, not about grouping operations. In this scenario, the need is atomicity between status change and location update, which is achieved through document design, not write concern. Therefore, this option does not address the requirement.
- ✗
Two-phase commit
Why it's wrong here
Two-phase commit is a pattern for coordinating writes across multiple documents or systems, but it is not a native MongoDB feature and is generally discouraged in favor of transactions or single-document atomicity. Implementing two-phase commit manually is complex and error-prone. The scenario can be solved more simply by embedding the location updates, making this option unnecessary and misaligned with MongoDB's philosophy.
- ✗
Multi-document ACID transactions
Why it's wrong here
While multi-document transactions can provide atomicity across multiple documents, they are not necessary here if the data is modeled within a single document. Using transactions would add complexity and potentially reduce performance. MongoDB's philosophy encourages embedding related data to avoid the need for transactions. Thus, this option is not the best fit for the scenario, as it contradicts the goal of adhering to document atomicity.
About these practice questions
One of 222 original C100DBA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official MongoDB exam blueprint
This C100DBA practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DBA exam.