MongoDB: NoSQL Database Fundamentals
MongoDB: NoSQL Database Fundamentals
Up to 20 questions, shuffled on every run
Welcome to the MongoDB Basics Quiz! NoSQL databases changed the way we handle modern web scale data. Understanding the document model, the flexibility of BSON, and the power of the aggregation pipeline is key for any modern developer or DevOps professional. Let’s see how much you know about the most popular document store in the world!
Answer key and explanations20 questions
The quiz above draws 20 questions at random from these 30, so a second attempt will not be the same run. Everything in the pool is listed here.
What type of NoSQL database is MongoDB?
AnswerDocument-oriented
What does "BSON" stand for in MongoDB?
AnswerBinary JSON
In MongoDB, what is the equivalent of a SQL "Table"?
AnswerCollection
What is the purpose of the unique "_id" field in a document?
AnswerTo act as a unique Primary Key for the document
Which command is used to insert a single document into a collection?
Answerdb.collection.insertOne()
What does "Schema-less" mean in the context of MongoDB?
AnswerDocuments in a collection can have different fields and structures
Which operator is used to filter results where a value is greater than a number?
Answer$gt
What is the "Aggregation Pipeline"?
AnswerA framework for data processing through multiple stages
Which aggregation stage is used to filter documents?
Answer$match
What does the "$group" stage do in an aggregation pipeline?
AnswerIt aggregates documents by a key and applies calculations
Which operator is used to update a specific field in a document?
Answer$set
What is "Horizontal Scaling" (Sharding) in MongoDB?
AnswerDistributing data across multiple machines for high throughput
What is a "Replica Set"?
AnswerA group of MongoDB instances maintaining the same data set
Which command is used to find all documents in a collection?
Answerdb.collection.find({})
What does the "$lookup" stage perform?
AnswerIt performs a left outer join to another collection
How do you perform a "Delete" in MongoDB?
Answerdb.collection.deleteMany({})
What is an "Index" in MongoDB?
AnswerA data structure that improves the speed of retrieval
What is the "$unwind" stage used for?
AnswerTo output a document for each element in an array field
What is the "Primary" node in a Replica Set?
AnswerThe node that receives all write operations
Which operator is used to push an element into an array field?
Answer$push
What is the purpose of the "sort()" method?
AnswerTo determine the order of returned matching documents
What is "Atlas" in the MongoDB ecosystem?
AnswerA fully managed cloud database service
Which stage is used to rename fields in an aggregation pipeline?
Answer$project
What does "TTL Index" stand for?
AnswerTime To Live Index
What is a "Capped Collection"?
AnswerA fixed-size collection that overwrites oldest entries
Which operator checks if a field exists in a document?
Answer$exists
What is the "Compass" tool?
AnswerA graphical user interface for visualizing MongoDB data
What does the "upsert" option do in an update operation?
AnswerIt creates a new document if no match is found
Which command shows the performance statistics of a query?
Answerexplain()
What is "Write Concern"?
AnswerA setting specifying the level of acknowledgment for writes








