Recall & Review
beginner
What is the basic unit of data storage in MongoDB?
The basic unit of data storage in MongoDB is a document. Documents are similar to JSON objects and store data in key-value pairs.
Click to reveal answer
beginner
How are MongoDB documents structured?
MongoDB documents are structured as BSON (Binary JSON), which allows them to store complex data types like arrays and nested documents.
Click to reveal answer
intermediate
Can MongoDB documents have different fields in the same collection?
Yes, MongoDB is schema-less, so documents in the same collection can have different fields and structures.
Click to reveal answer
beginner
What data types can be stored inside a MongoDB document?
MongoDB documents can store various data types including strings, numbers, dates, arrays, embedded documents, and binary data.
Click to reveal answer
intermediate
Why does MongoDB use BSON instead of plain JSON for documents?
BSON is a binary format that is faster to parse and supports additional data types like date and binary which JSON does not support natively.
Click to reveal answer
What format does MongoDB use to store documents internally?
✗ Incorrect
MongoDB stores documents internally in BSON format, which is a binary form of JSON.
Can documents in the same MongoDB collection have different fields?
✗ Incorrect
MongoDB collections are schema-less, so documents can have different fields and structures.
Which of the following is NOT a valid data type in a MongoDB document?
✗ Incorrect
MongoDB documents do not store functions as data types.
Why is BSON preferred over JSON in MongoDB?
✗ Incorrect
BSON supports additional data types and is optimized for speed, unlike JSON.
What does a MongoDB document resemble in everyday terms?
✗ Incorrect
A MongoDB document resembles a JSON object with key-value pairs.
Explain how MongoDB stores data as documents and why this is useful.
Think about how documents are like JSON and how MongoDB allows different structures.
You got /5 concepts.
Describe the advantages of using BSON for storing MongoDB documents compared to plain JSON.
Consider what extra features BSON has that JSON lacks.
You got /4 concepts.