Which of these is NOT a valid BSON data type?
string
boolean
character
float
Which operator is commonly used within a $group stage to calculate the sum of a specific field?
$group
$avg
$sum
$push
$max
Which schema design pattern in MongoDB is suitable for storing time-series data like sensor readings?
Attribute Pattern
Subset Pattern
Bucket Pattern
Extended Reference Pattern
What is the purpose of replica sets in MongoDB?
Query Optimization
Load Balancing
Data Sharding
High Availability and Data Redundancy
What is the difference between deleteOne() and deleteMany() in MongoDB?
deleteOne()
deleteMany()
deleteOne() deletes the first matching document, while deleteMany() deletes all matching documents.
There is no difference; both commands perform the same action.
deleteOne() deletes documents permanently, while deleteMany() moves them to the trash.
deleteOne() deletes all documents, while deleteMany() deletes only the specified number of documents.
How do you remove a collection named "products" from a MongoDB database?
db.products.drop()
remove collection products
delete products
drop products
What is the basic unit of data in MongoDB?
Document
Row
Table
Column
Which command is used to create a new database in MongoDB?
create database
new database
use database
make database
What is the primary purpose of the MongoDB Aggregation Framework?
Performing CRUD (Create, Read, Update, Delete) operations on documents.
Defining the schema and structure of MongoDB collections.
Managing user authentication and authorization.
Processing and analyzing data to extract meaningful insights.
Which of the following is NOT a valid CRUD operation in MongoDB?
Delete
Create
Update
Retrieve