How are relationships between documents typically managed in MongoDB?
Joins, similar to SQL.
Through data duplication across collections.
Embedded documents or references.
Foreign keys, like in relational databases.
Which of these is NOT a valid BSON data type?
string
float
boolean
character
Which of the following is NOT a commonly used MongoDB driver?
Python driver
Node.js driver
C# driver
Java driver
What is the BSON data type for storing an array of values in MongoDB?
array
set
object
list
In the context of the Python MongoDB driver (PyMongo), what does the find_one() method return?
find_one()
A single document matching the query (or None if no match)
A list of all documents matching the query
The number of documents matching the query
A cursor object for iterating over matching documents
How do you establish a connection to a MongoDB database in a Java application using the MongoDB Java driver?
By creating an instance of the MongoClient class
MongoClient
By using the db.connect() method
db.connect()
By calling the connect() method on the MongoDatabase class
connect()
MongoDatabase
By creating a new MongoConnection object
MongoConnection
Which of the following is NOT a key consideration when designing a schema in MongoDB?
Query patterns and performance requirements
Document size and growth potential
Data normalization to eliminate redundancy
Data relationships and access patterns
What is a collection in MongoDB?
A user account
A specific data type
A group of databases
A table-like structure containing documents
Which data type in MongoDB is used to store decimal numbers?
numberDecimal
double
decimal
int
Which of the following is NOT a valid CRUD operation in MongoDB?
Delete
Create
Update
Retrieve