Which command is used to create an index in MongoDB?
db.collection.insertIndex()
db.collection.ensureIndex()
db.collection.addIndex()
db.collection.createIndex()
In the context of the $group stage, what does the _id field represent?
$group
_id
The field used to group documents together based on a shared value.
The unique identifier of the document within the collection.
A placeholder for a calculated aggregate value.
The total number of documents processed by the aggregation pipeline.
What is the command used to connect to a running MongoDB instance from the terminal?
connect_mongodb
mongodb-connect
start_mongo
mongo
What is a core concept of data modeling in MongoDB?
Strictly enforcing data types and relationships
Representing data in a tabular format with rows and columns
Organizing data into documents with a flexible schema
Using joins to query data across multiple collections
How do you delete a database in MongoDB?
drop database
erase database
delete database
remove database
In MongoDB, data is stored in BSON format. What does BSON stand for?
Basic Serialized Object Notation
Binary System Object Notation
Balanced Schema Object Notation
Binary Structured Object Notation
Which of the following is NOT a commonly used MongoDB driver?
C# driver
Node.js driver
Java driver
Python driver
What is the basic unit of data in MongoDB?
Table
Row
Document
Column
What is the BSON data type for storing an array of values in MongoDB?
set
list
object
array
What Java class is commonly used with the MongoDB Java driver to interact with MongoDB collections?
MongoClient
MongoDatabase
MongoCursor
MongoCollection