Which of the following is a key advantage of using a sharded cluster in MongoDB?
Reduced memory consumption compared to a standalone deployment
Automatic failover and high availability without the need for replica sets
Improved write performance by distributing writes across shards
Simplified data modeling and schema design
What is a key consideration when choosing the order of fields in a compound index?
Size of the data stored in each field.
Frequency and selectivity of query conditions.
Data type of the fields (e.g., string, number).
Alphabetical order of field names.
What is the minimum number of nodes required to set up a MongoDB replica set?
1
7
2
3
When are transactions in MongoDB typically considered essential?
For all database operations to guarantee data integrity.
When ACID properties are crucial, such as when multiple operations need to succeed or fail together to maintain data consistency.
For improving the performance of individual queries.
When performing read-only operations to ensure consistent snapshots of data.
What role does an arbiter node play in a MongoDB replica set?
It manages backups and restores for the replica set.
It processes read and write operations like other nodes.
It participates in elections but doesn't store data.
It stores a copy of the data for redundancy.
What is a common reason for slow query performance despite having an index on the queried field?
The query uses a projection to select only a subset of fields
The collection has a large number of documents
The indexed field has low cardinality (many documents share the same value)
The index is too large to fit entirely in RAM
What is the primary purpose of the MongoDB In-Memory Storage Engine?
Long-term data persistence
Reducing storage costs
High-speed data analysis
Full-text search indexing
What is the default storage engine for MongoDB versions 4.2 and later?
RocksDB
InMemory
WiredTiger
MMAPv1
What is the minimum number of config servers required for a production-ready sharded cluster in MongoDB?
5
What is the primary purpose of roles in MongoDB's authorization system?
To enforce data validation rules
To define granular permissions for database operations
To encrypt data at rest
To manage user authentication