Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB C100DBA Exam - Topic 5 Question 114 Discussion

Posted by Hildred on Jul 13, 2025 at 09:24 PM

In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?

Suggested Answer: C

Get Premium C100DBA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
LA
Lashunda 10 months ago
Wait, can you really set j to 0? That seems odd.
KI
Kip 10 months ago
I think 7 is overkill for journal writes.
WY
Wynell 10 months ago
j should be set to 1 for journal write.
AG
Agustin 10 months ago
Agreed, 1 is the right choice here.
EM
Emmanuel 10 months ago
Definitely not 0, that would be risky!
SA
Sabra 11 months ago
I’m leaning towards 1 for j as well, but I wonder if there are cases where a higher value would be necessary.
GE
Germaine 11 months ago
I practiced a similar question, and I feel like setting j to 0 might be risky. We want to ensure durability, right?
RO
Rosalind 11 months ago
I'm not entirely sure, but I remember something about needing a majority for write concerns. Does that mean we should choose a higher value for j?
ME
Melissa 11 months ago
I think the j option should be set to 1, since it just needs to ensure that the write is committed to the journal of at least one member.
MA
Mable 11 months ago
I'm pretty confident on this one. The j option is about ensuring the writes are committed to the journal, and it's independent of the number of replica set members. Since we want to ensure the writes are committed to the journal, the answer should be 1.
EV
Eve 12 months ago
Hmm, this is a tricky one. I know the j option is about the journal, but I'm not sure if the number of replica set members is directly related to that. I'll need to think this through carefully and review the concepts around write concerns and journaling in a sharded environment.
HU
Hubert 12 months ago
Okay, I think I got this. The j option is about ensuring the data is written to the disk journal, not about the number of replica set members. Since we have a seven-member replica set, the value of j should be 1 to ensure the writes are committed to the journal on at least one member.
PU
Pura 12 months ago
I'm a bit confused on this one. The question mentions the w option for write concern, but then asks about the j option. I'm not sure if the j option is related to the number of members in the replica set or something else. I'll need to review my notes on replica set configuration to be sure.
IS
Isaac 1 year ago
Hmm, this seems straightforward. The question is asking about the j option in a sharded replica set environment, and we want to ensure the writes are committed to the journal. Since we have a seven-member replica set, I think the answer should be 7.
TE
Temeka 1 year ago
This question is a piece of cake! The answer is clearly 7, since we want to make sure the writes are committed to the journal on all 7 members of the replica set. Easy peasy!
GR
Graham 1 year ago
↳ replying to Temeka
A) 7
LI
Lillian 1 year ago
Hmm, let me think about this... If I set j to 0, does that mean the writes will be committed to the journal on none of the members? That doesn't sound like a good idea at all!
TY
Tyisha 1 year ago
I was just wondering, can we use the 'j' option to write our journal entries in the shape of a smiley face? That would be a nice touch, don't you think?
CO
Cortney 1 year ago
For a 7-member replica set, the value of j should be 7 to ensure that the writes are committed to the journal on all members. Option A is the correct answer.
CE
Celeste 1 year ago
↳ replying to Cortney
B) 2
CH
Chanel 1 year ago
↳ replying to Cortney
A) 7
KI
Kiley 1 year ago
I think j should be set to 1 for a good balance between durability and performance.
TY
Ty 1 year ago
That's true, but setting j to 7 might impact the performance.
CH
Cherrie 1 year ago
But wouldn't setting j to 7 provide more durability?
KI
Kiley 1 year ago
I agree with Ty, j should be 1 to ensure data is written on disk journal.
TY
Ty 1 year ago
I think the value of j should be 1.
0/2000 characters

Save Cancel