Chapter Quiz: Advanced CRUD (Update & Delete)

Mastery Assessment: Advanced CRUD

Complete this assessment with 100% score to master this chapter.

01What happens during an 'Upsert' operation if no document matches the search criteria?

02When using `findAndModify` (or `findOneAndUpdate`), which option ensures you receive the document *after* the update is applied?

03Which update operator is used to add an element to an array only if it does not already exist in that array?

04What is the primary advantage of using `bulkWrite()` for large data imports compared to multiple `insertOne()` calls?