All quizzes
Free quiz · 50 questions in the bank

MongoDB quiz

Test your MongoDB knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does a single-field index on `email` enable?

Questions in this quiz
  1. What does a single-field index on `email` enable?
  2. What does `db.users.find({age: {$gt: 18}})` return?
  3. How are dates typically stored in MongoDB?
  4. A MongoDB connection string typically starts with which prefix?
  5. How would you query for documents where `status` is either `"active"` or `"pending"`?
  6. If you insert a document without an `_id` field, what happens?
  7. What is an `ObjectId` in MongoDB?
  8. Which is more accurate (but slower) on large collections: `countDocuments` or `estimatedDocumentCount`?
  9. What does the `upsert` option do in an update?
  10. Which update operator increments a numeric field?
  11. What is BSON?
  12. When deciding between embedding a sub-document and referencing it by id, the most common starting heuristic is:
Gaps to close?
Read the curated MongoDB notes — core concepts, patterns, interview prep.
MongoDB notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web