Which schema design pattern in MongoDB is suitable for storing time-series data like sensor readings?
Attribute Pattern
Extended Reference Pattern
Bucket Pattern
Subset Pattern
What is the primary advantage of MongoDB's flexible schema design?
Reduced storage space requirements
Improved data integrity
Faster query performance
Simplified data modeling and agility
What is the basic unit of data in MongoDB?
Column
Table
Document
Row
When creating a single field index, what value indicates ascending sort order?
-1
1
DESC
ASC
Which of these is NOT a valid BSON data type?
character
boolean
string
float
What is the function of the $project stage in the aggregation pipeline?
$project
To sort documents in ascending or descending order.
To reshape and transform the structure of output documents.
To filter documents based on matching criteria.
To group documents based on shared values.
How do you verify that the MongoDB server has started successfully?
Use the systemctl status mongod command to view the service's status
Try to connect to the MongoDB server using the mongo shell
Check the log file for messages indicating successful startup
All of the above
In a MongoDB cluster, which component acts as a query router and distributes requests to the appropriate shards?
Replica Set
Config Server
Mongos
Primary Node
MongoDB's ability to handle massive datasets and high traffic is attributed to its:
Horizontal scaling capabilities
Advanced indexing techniques
Strong data consistency guarantees
Use of SQL for querying
What is the role of a MongoDB cursor in the context of database interactions?
To handle authentication and authorization for database access
To define the structure of a document
To store the results of a query, allowing for iteration over the returned documents
To create and manage indexes on a collection