What is the minimum number of nodes required to set up a MongoDB replica set?
2
3
1
7
What is a common reason for slow query performance despite having an index on the queried field?
The collection has a large number of documents
The index is too large to fit entirely in RAM
The indexed field has low cardinality (many documents share the same value)
The query uses a projection to select only a subset of fields
Which of the following is a disadvantage of using the MongoDB In-Memory Storage Engine?
Lack of support for indexing
Limited data size capacity
Slower write speeds compared to WiredTiger
Increased complexity in configuration
Which sharding strategy allows for geographically distributing data to optimize for local user access?
Zone sharding
Hashed sharding
Ranged sharding
Random sharding
Which stage allows for conditional execution of pipeline stages in MongoDB's aggregation framework?
$switch
$case
$cond
$ifNull
What is the purpose of 'write concern' in MongoDB?
To manage data compression for write operations.
To control how many nodes must acknowledge a write operation.
To limit the number of writes per second.
To specify the level of security for write operations.
Which security feature helps ensure that only authorized personnel can modify the configuration settings of a MongoDB deployment?
Auditing
Role-Based Access Control (RBAC)
Field Level Encryption
Data Masking
What happens during a failover event in a MongoDB replica set?
A new primary node is elected from the available secondaries.
Data is automatically restored from backups.
All read and write operations are halted indefinitely.
The primary node automatically recovers.
What is the minimum number of config servers required for a production-ready sharded cluster in MongoDB?
5
What is the primary advantage of using a compound index in MongoDB?
Improved performance for text search queries.
Reduced memory consumption for storing index data.
Simplified management of index structures.
Faster retrieval of documents matching multiple fields.