Recall & Review
beginner
What is BSON in MongoDB?
BSON is a binary format used by MongoDB to store data. It is like JSON but includes extra data types and is faster for computers to read and write.
Click to reveal answer
beginner
Name three common BSON data types.
Common BSON data types include String (text), Int32 (small whole numbers), and Date (date and time).
Click to reveal answer
beginner
What BSON type would you use to store true or false values?
You use the Boolean BSON type to store true or false values.
Click to reveal answer
intermediate
How does BSON handle binary data like images or files?
BSON uses the Binary data type to store binary data such as images or files inside the database.
Click to reveal answer
intermediate
Why does BSON include special types like ObjectId and Date?
BSON includes special types like ObjectId to uniquely identify documents and Date to store time information efficiently, which JSON does not support natively.
Click to reveal answer
Which BSON data type is used to store text?
✗ Incorrect
The String type stores text data in BSON.
What BSON type uniquely identifies a document in MongoDB?
✗ Incorrect
ObjectId is a special BSON type used as a unique ID for documents.
Which BSON type would you use to store a true or false value?
✗ Incorrect
Boolean stores true or false values in BSON.
How does BSON store date and time information?
✗ Incorrect
BSON has a special Date type to store date and time efficiently.
Which BSON type is best for storing images or files?
✗ Incorrect
Binary type stores raw binary data like images or files.
List and describe at least five BSON data types and their uses.
Think about text, numbers, true/false, time, unique IDs, and files.
You got /6 concepts.
Explain why BSON is used in MongoDB instead of plain JSON.
Consider what JSON cannot do well that BSON can.
You got /5 concepts.