What is a core concept of data modeling in MongoDB?
Using joins to query data across multiple collections
Representing data in a tabular format with rows and columns
Strictly enforcing data types and relationships
Organizing data into documents with a flexible schema
Can you use multiple $match stages within a single aggregation pipeline?
$match
No, you can only use one $match stage per aggregation pipeline.
Yes, you can use multiple $match stages, and their order matters.
It depends on the version of MongoDB you are using.
Yes, you can use multiple $match stages, but their order doesn't matter.
Which of the following is NOT a valid CRUD operation in MongoDB?
Retrieve
Delete
Create
Update
What Java class is commonly used with the MongoDB Java driver to interact with MongoDB collections?
MongoCursor
MongoCollection
MongoClient
MongoDatabase
Which command is used to create an index in MongoDB?
db.collection.insertIndex()
db.collection.ensureIndex()
db.collection.createIndex()
db.collection.addIndex()
Which data type in MongoDB is used to store decimal numbers?
numberDecimal
decimal
double
int
How do you verify that the MongoDB server has started successfully?
All of the above
Try to connect to the MongoDB server using the mongo shell
Use the systemctl status mongod command to view the service's status
Check the log file for messages indicating successful startup
After adding the MongoDB repository to your system's package manager, which command updates the package list and installs the MongoDB server package?
sudo systemctl start mongod
mongod
mongorestore
sudo apt-get install -y mongodb-org
What type of index would be most suitable for a field containing unique user IDs?
Text Index
Multikey Index
Single Field Index
Geospatial Index
The Attribute Pattern in MongoDB is best suited for:
Managing evolving schemas and varying attributes for different documents
Representing hierarchical relationships between entities
Optimizing geospatial queries for location-based data
Storing a large, sparse matrix of data