C100DBA Application Administration Practice Question
A database administrator is configuring a MongoDB replica set. The application requires that writes are acknowledged by a majority of voting members before being considered successful, and that the write is also written to the on-disk journal before acknowledgment. Which write concern specification achieves this?
⚠ Common exam trap
The trap here is assuming that w: "majority" alone guarantees journaling, when in fact journaling must be explicitly enabled with j: true.
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
✓
{ w: "majority", j: true }
The write concern { w: "majority", j: true } ensures that the write is acknowledged by a majority of voting members and that it is written to the on-disk journal before acknowledgment. This provides both durability and high availability. The other options either lack journaling or lack majority acknowledgment, or both.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
{ w: 1, j: true }
Why it's wrong here
This write concern requires acknowledgment from only the primary (w: 1) but does require journaling. While it ensures the write is journaled on the primary, it does not wait for a majority of members to acknowledge. If the primary fails before replicating, the write could be lost. Thus, it does not satisfy the majority acknowledgment requirement.
- ✗
{ w: "majority", j: false, wtimeout: 5000 }
Why it's wrong here
This write concern requires majority acknowledgment but no journaling, and adds a timeout. The timeout means that if the write is not acknowledged by a majority within 5000 ms, it returns an error. However, the lack of journaling means the write may not be persisted to disk. This does not meet the journaling requirement.
- ✓
{ w: "majority", j: true }
Why this is correct
This write concern requires acknowledgment from a majority of voting members (w: "majority") and also requires that the write be written to the on-disk journal (j: true) before returning success. This matches the requirement exactly: majority acknowledgment plus journaling. It provides strong durability and is suitable for critical data.
- ✗
{ w: "majority", j: false }
Why it's wrong here
This write concern requires majority acknowledgment but does not require journaling. While it ensures that the write is replicated to a majority of members, it does not guarantee that the write is persisted to disk on those members. A power failure could still lose the write if it was not journaled. Therefore, it does not meet the requirement of journaling before acknowledgment.
About these practice questions
Courseiva writes every C100DBA question from scratch — 222 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.