There are no extra credit assignments for this course.
Blog
Which command is used to drop a collection in MongoDB?
Which command is used to drop a collection in MongoDB?
Given the following upsert operation: db.inventory.updateOn…
Given the following upsert operation: db.inventory.updateOne( {item: “pencil”}, {$set: {qty: 50, price: 0.99}}, {upsert: true}) What happens if no document with item: “pencil” exists in the collection?
Given the following index creation and query: db.users.cre…
Given the following index creation and query: db.users.createIndex({gender: 1, user_name: 1}) db.users.find({gender: “M”}, {user_name: 1, _id: 0}) What is the most important reason this query is considered a covered query?
Which of the following commands will limit the number of doc…
Which of the following commands will limit the number of documents displayed to 2?
Which of the following options best describes how MongoDB en…
Which of the following options best describes how MongoDB ensures data consistency across a sharded cluster?
Consider the following query: db.books.find({$nor: [{“public…
Consider the following query: db.books.find({$nor: [{“publication year” : “2016”}, {“title” : “MongoDB”}]}).pretty() What does this query return?
When using the $group stage in MongoDB’s aggregation framewo…
When using the $group stage in MongoDB’s aggregation framework, which of the following fields is mandatory?
Consider the following query using $hint: db.users.find({ge…
Consider the following query using $hint: db.users.find({gender: “M”, name: “Tom Benzamin”}).hint({gender: 1, name: 1})’ Why would you use the $hint method in this case?
What is another term for a poison?
What is another term for a poison?