What is a core concept of data modeling in MongoDB?
Organizing data into documents with a flexible schema
Using joins to query data across multiple collections
Strictly enforcing data types and relationships
Representing data in a tabular format with rows and columns
Which scenario suggests using a reference over embedding in MongoDB?
Accessing a user's profile data when they log in
Fetching order details along with customer information
Representing a many-to-many relationship, like students and courses
Retrieving comments for a specific blog post
What Java class is commonly used with the MongoDB Java driver to interact with MongoDB collections?
MongoDatabase
MongoCollection
MongoClient
MongoCursor
Which update operator replaces the value of a field with a specified value?
$rename
$push
$inc
$set
Which data type in MongoDB is used to store decimal numbers?
decimal
numberDecimal
int
double
What is the command to download the latest stable release of MongoDB Community Edition on most Linux systems?
sudo apt-get install -y mongodb-org
mongosh
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
sudo systemctl start mongod
Which data type would you use to store a date and time in MongoDB?
datetime
date
string
timestamp
What is the basic unit of data in MongoDB?
Row
Column
Document
Table
In MongoDB, data is stored in BSON format. What does BSON stand for?
Balanced Schema Object Notation
Binary Structured Object Notation
Binary System Object Notation
Basic Serialized Object Notation
How do you remove a collection named "products" from a MongoDB database?
drop products
db.products.drop()
remove collection products
delete products