Which of the following is a key advantage of using a sharded cluster in MongoDB?
Simplified data modeling and schema design
Automatic failover and high availability without the need for replica sets
Reduced memory consumption compared to a standalone deployment
Improved write performance by distributing writes across shards
Which operator is used to create a text index in MongoDB?
$createIndex
$index
$geo
$text
Which of the following is NOT a recommended practice for performance tuning in MongoDB?
Monitoring and profiling query performance
Using appropriate indexes for frequently queried fields
Optimizing schema design for data access patterns
Running multiple instances of mongod on a single core machine
When should you consider using a hashed index in MongoDB?
When preserving the sort order of results is crucial.
When you need to perform exact value lookups.
To index geospatial data for location-based queries.
For highly selective queries on a single field.
Which stage of the explain plan indicates that an index was effectively used to limit the number of documents scanned?
FETCH
SHARD_MERGE
COLLSCAN
IXSCAN
What is the minimum number of nodes required to set up a MongoDB replica set?
7
2
1
3
What is the purpose of 'write concern' in MongoDB?
To limit the number of writes per second.
To control how many nodes must acknowledge a write operation.
To manage data compression for write operations.
To specify the level of security for write operations.
Which of the following is NOT a built-in authentication mechanism in MongoDB?
API Key Authentication
x.509 Certificate Authentication
SCRAM-SHA-1
LDAP
What is a key consideration when choosing the order of fields in a compound index?
Data type of the fields (e.g., string, number).
Frequency and selectivity of query conditions.
Alphabetical order of field names.
Size of the data stored in each field.
How can you ensure optimal memory allocation for the MongoDB WiredTiger storage engine?
Regularly compact the database to reclaim unused space
Manually configure the size of the WiredTiger internal cache
Set the --noprealloc flag during mongod startup
--noprealloc
Disable journaling for improved write performance