Creating and Manipulating Documents

Quiz: Updating Documents in the shell

For quiz, Given Document has pet named as “Wolf” whereas the queries provided in option is trying to update the document with search criteria as {“pet”:“cat”}.
i tested the given document with each answer and none of the insert query updated the given document which i believe is right as search criteria “pet”:“cat” doesnt exist.

could you please check and correct me in case my understanding in not correct.

I believe the options provided for answers seems to be incorrect. uploaded the result of test done

mongodb_update_query_quiz.txt (2.8 KB)

The problem statement does not indicate that there are only documents with { pet : Wolf } in it. It says that it contains documents with the given structure. The important part is the structure of the documents (the presence or not of certain fields), not the specific values of the sample document.