MongoDB
C100DBA · Question #77
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?
Sign in or unlock C100DBA to reveal the answer and full explanation for question #77. The question stem and answer options stay visible for context.
MongoDB Fundamentals
Question
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?
Options
- A$arrayLimit
- B$push along with $each, $sort and $slice
- C$removeFromSet
- DNone of the above
Unlock C100DBA to see the answer
You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#$push#$slice#array update operators#$each