Answers are AI-generated. Review them carefully with the confidence label.
MongoDB DEV · Question 179 · Single choice
Consider a collection called stuff which only contains the following documents:
{ "_id": 1, "a": 1, "b": 1 }
{ "_id": 2, "a": 4, "b": 3 }
{ "_id": 3, "a": 4, "b": 6 }
{ "_id": 4, "a": 2, "b": 10 }
{ "_id": 5, "a": 5, "b": 15 }
You perform the following operation:
db.runCommand( { delete: "stuff", deletes: [ { q: { a: 4 }, limit: 1 } ] } ) How many documents will be deleted as a result of this operation?
Choose the best answer:
This question appears in 3 bank records. Public pages combine identical prompts and options. Selected questions display the highest-confidence record; the others show a short preview. Paper-based learning preserves each record's answer, explanation, and confidence.