Which operator is used to create a text index in MongoDB?
$index
$geo
$text
$createIndex
What is a key consideration when choosing the order of fields in a compound index?
Frequency and selectivity of query conditions.
Alphabetical order of field names.
Data type of the fields (e.g., string, number).
Size of the data stored in each field.
What is the minimum number of nodes required to set up a MongoDB replica set?
3
2
1
7
Which stage of the explain plan indicates that an index was effectively used to limit the number of documents scanned?
FETCH
IXSCAN
SHARD_MERGE
COLLSCAN
Which of the following is a recommended practice when using transactions in MongoDB?
Keeping transactions short-lived and focused to minimize locking overhead and potential for conflicts.
Including as many operations as possible within a single transaction to simplify code logic.
Avoiding the use of indexes within transactions as they can negatively impact performance.
Keeping transactions as long-running as possible to maximize the number of operations covered.
Which index type in MongoDB is specifically designed to support queries that involve ranges of data?
Text Index
Geospatial Index
Compound Index
Single Field Index
What MongoDB tool is most suitable for visualizing and analyzing query performance?
MongoDB Profiler
mongoimport
mongostat
mongoexport
Why is it crucial to keep your MongoDB server and client drivers up-to-date?
To ensure backward compatibility with older versions of MongoDB.
To patch known security vulnerabilities that could be exploited by attackers.
To benefit from new features and performance improvements.
To reduce storage costs by using more efficient data compression algorithms.
What is the purpose of 'write concern' in MongoDB?
To control how many nodes must acknowledge a write operation.
To manage data compression for write operations.
To limit the number of writes per second.
To specify the level of security for write operations.
What is the primary purpose of sharding in MongoDB?
Simplifying data backups and restoration
Enhancing data security through encryption
Providing real-time data analytics capabilities
Improving query performance by distributing data