0
0
MongoDBquery~5 mins

How MongoDB stores data as documents - Quick Revision & Summary

Choose your learning style9 modes available
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?
AYAML
BBSON
CCSV
DXML
Can documents in the same MongoDB collection have different fields?
ANo, all documents must have the same fields
BOnly if they are in different databases
CYes, MongoDB collections are schema-less
DOnly if they are indexed
Which of the following is NOT a valid data type in a MongoDB document?
AArray
BDate
CEmbedded document
DFunction
Why is BSON preferred over JSON in MongoDB?
ABSON supports more data types and is faster to parse
BBSON is human-readable
CBSON is text-based
DBSON files are smaller than JSON files
What does a MongoDB document resemble in everyday terms?
AA JSON object
BA spreadsheet row
CA flat text file
DA relational table
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.