Which of the following best describes the relationship between documents and collections in MongoDB?
Collections define the structure of a document
Collections are made up of multiple documents
Documents are fields within a collection
Documents and collections are unrelated
What is a potential drawback of excessive embedding in MongoDB?
Larger document sizes, potentially impacting storage and retrieval speed
Inability to represent one-to-many relationships effectively
Increased query complexity and reduced performance
Difficulties in updating related data consistently
Which of the following is NOT a commonly used MongoDB driver?
Java driver
C# driver
Python driver
Node.js driver
What is the primary advantage of MongoDB's flexible schema design?
Improved data integrity
Reduced storage space requirements
Faster query performance
Simplified data modeling and agility
What does the upsert option do in an update operation?
upsert
Creates a new document if no match is found
Deletes the document if a match is found
Renames the collection
Updates multiple documents
Which of these is NOT a valid BSON data type?
boolean
string
float
character
Which operator is commonly used within a $group stage to calculate the sum of a specific field?
$group
$avg
$sum
$max
$push
What is the basic unit of data in MongoDB?
Column
Table
Row
Document
Which command in the MongoDB shell displays all available databases?
show dbs
list databases
show databases
db.getDatabases()
What does the $avg operator calculate within the $group stage?
The average value of a field in each group.
The minimum value of a field in each group.
The maximum value of a field in each group.
The total count of documents in each group.