MongoDB
C100DBA · Question #102
C100DBA Question #102: Real Exam Question with Answer & Explanation
Sign in or unlock C100DBA to reveal the answer and full explanation for question #102. The question stem and answer options stay visible for context.
Question
Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?
Options
- Aupsert command instead of update command
- BThis has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in
- C{update: true, insert: true} as the third parameter of update command
- DSpecify {upsert : true } as the third parameter of update command
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.