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 1 Question 8 Discussion

Posted by Theola on May 06, 2022 at 04:01 PM

Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called "sample". Check all that apply.

db.sample.find( { "$or" : [ { "a" : { "$in" : [ 3, 10] > }, { "b" : { "$lt" : 2 > > ] > )

Suggested Answer: D, E, F, I, J

Get Premium C100DBA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
CH
Chun 11 months ago
Just to clarify, A is definitely in, but E is a bit tricky.
WI
Willard 12 months ago
B and D don't fit at all.
SU
Sunshine 12 months ago
Wait, are you sure about E? I thought it had to be less than 2 for b.
AG
Agustin 12 months ago
Totally agree, A and E are the only ones!
DO
Domitila 1 year ago
A and E match the query.
TR
Tresa 1 year ago
I feel like I’ve seen this structure before. I think options A and E should be correct because they fit the criteria, but I’m not 100% sure about the others.
FL
Florencia 1 year ago
I’m a bit lost with the operators. Does the $in operator mean it will only match if 'a' is exactly 3 or 10? I hope I got that right.
TI
Tish 1 year ago
I remember practicing a similar question where we had to check conditions using $or. I think options E and H might match the query.
VA
Vallie 1 year ago
I think the query is looking for documents where 'a' is either 3 or 10, or where 'b' is less than 2. I’m not entirely sure about the syntax though.
MA
Marvel 1 year ago
I'm feeling confident about this one. Present value is the current value of holdings, not the future value or how it will grow. It's just the value of what you have right now.
OT
Otis 1 year ago
Hmm, I'm a bit unsure about this one. The question mentions "competitive analysis" which makes me think a longer planning period might be needed. I'm torn between A and C, but I'll have to think it through a bit more.
PE
Peggie 1 year ago
This looks like a tricky question on contract accounting. I'll need to carefully review the details of each contract to determine which ones use cost of sales as the balancing figure.
AN
Antione 1 year ago
I remember a similar practice question where we had to determine if the model captured seasonality correctly. I think it was option A, but I'm a bit confused here.
0/2000 characters

Save Cancel