Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?
Suggested Answer: B
Get Premium C100DBA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
FL
Fletcher
11 months ago
I disagree, I think D could be a valid answer too.
LI
Lino
12 months ago
Surprised that none of these options mention $slice directly!
OZ
Ozell
12 months ago
C is not a thing, right? Just checking!
AL
Alfreda
12 months ago
I thought it was A at first, but B makes more sense.
JU
Junita
1 year ago
Definitely B, that's the right combo for limiting arrays!
AR
Arlene
1 year ago
I'm leaning towards "None of the above," but I really need to double-check what $removeFromSet does.
RU
Ruby
1 year ago
I practiced a similar question where we had to manage array fields, and I think $push with $slice was the right answer there too.
DO
Domitila
1 year ago
I feel like $arrayLimit sounds familiar, but I can't recall if it's actually a valid operator in MongoDB.
TR
Tresa
1 year ago
I think I remember something about using $push with $each and $slice to limit array size, but I'm not entirely sure.
YO
Yolando
1 year ago
Ah, I remember learning about this command in class. I'm pretty confident the correct answer is option C - the startup-config is erased but the management interface settings are preserved.
BR
Brittani
1 year ago
This is a good opportunity to demonstrate my knowledge of change set deployment. I'll make sure to carefully review the options and select the two correct configurations needed to successfully move the changes to production.
MO
Mona
1 year ago
I practiced a similar question about inflation affecting measurements. Non-financial ones shouldn't be distorted by it, which makes me lean towards option D.