Answers are AI-generated. Review them carefully with the confidence label.
MongoDB DBA · Question 119 · Multiple choice
3. Consider the following documents in a collection called tastes
{ "favorite_foods": ["Pizza", "Chicken", "Donuts"] }
{ "favorite_foods": ["Fish", "Pizza", "Fruit salad"] }
{ "favorite_foods": ["Rice Pudding", "Fish", "Pizza"] }
Which document(s) would be returned with the following query?
db.tastes.find({ "favorite_foods": { "$all": [ "Pizza", "Fish" ] } })
Check all that apply:
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.