What is the primary purpose of using transactions in MongoDB?
To ensure atomicity, consistency, isolation, and durability (ACID) properties for multiple operations.
To enable data replication across multiple MongoDB clusters.
To create backups and restore data in case of failures.
To improve query performance for individual operations.
What is the minimum number of nodes required to set up a MongoDB replica set?
7
1
2
3
Which of the following is a disadvantage of using the MongoDB In-Memory Storage Engine?
Slower write speeds compared to WiredTiger
Increased complexity in configuration
Limited data size capacity
Lack of support for indexing
Which operator is used to create a text index in MongoDB?
$index
$text
$geo
$createIndex
What role does an arbiter node play in a MongoDB replica set?
It processes read and write operations like other nodes.
It manages backups and restores for the replica set.
It stores a copy of the data for redundancy.
It participates in elections but doesn't store data.
What is the primary purpose of the MongoDB In-Memory Storage Engine?
High-speed data analysis
Reducing storage costs
Full-text search indexing
Long-term data persistence
In the context of MongoDB Internals, what does 'Journaling' primarily ensure?
Data compression for efficient storage
Real-time data replication across nodes
Authorization and access control for database users
Data durability and recovery in case of failures
What is a crucial aspect to consider regarding performance when working with transactions in MongoDB?
Transactions always improve performance by grouping related operations.
Transactions can introduce additional overhead, so it's essential to use them judiciously where ACID properties are strictly required.
Transactions are only recommended for read-only operations to maintain data consistency.
Transactions generally have no impact on performance and can be used liberally.
What is a shard key in MongoDB's sharding system?
A password used to authenticate connections to the cluster
An encryption key used for securing data on shards
A unique identifier assigned to each shard server
A field or set of fields used to distribute data across shards
In MongoDB aggregation, what does the $unwind stage do?
Sorts documents in ascending order
Merges multiple documents into one
Groups documents by a specific field
Deconstructs an array field into separate documents