How does creating indexes on appropriate fields impact the performance of aggregation queries in MongoDB?
Indexes are only relevant for find() queries, not aggregation
Indexes have no impact on aggregation performance
Indexes can significantly improve aggregation performance
Indexes can negatively affect aggregation performance
What is the minimum number of nodes required to set up a MongoDB replica set?
1
3
7
2
Which of the following is NOT a recommended practice for performance tuning in MongoDB?
Optimizing schema design for data access patterns
Running multiple instances of mongod on a single core machine
Using appropriate indexes for frequently queried fields
Monitoring and profiling query performance
Which sharding strategy distributes data based on ranges of the shard key values?
Random sharding
Hashed sharding
Zone sharding
Ranged sharding
Which geospatial query operator in MongoDB finds documents within a specific radius?
$geoIntersects
$nearSphere
$near
$geoWithin
Why is it crucial to keep your MongoDB server and client drivers up-to-date?
To reduce storage costs by using more efficient data compression algorithms.
To patch known security vulnerabilities that could be exploited by attackers.
To ensure backward compatibility with older versions of MongoDB.
To benefit from new features and performance improvements.
How can you improve the performance of a $lookup operation in MongoDB?
Use $sort after the $lookup stage
Use $match to filter documents before the $lookup stage
Use $project to limit fields returned after the $lookup
Avoid using $lookup altogether
Which of the following is NOT a built-in authentication mechanism in MongoDB?
x.509 Certificate Authentication
LDAP
API Key Authentication
SCRAM-SHA-1
What is the primary advantage of using hashed sharding in MongoDB?
Simplifying data migration between shards
Optimizing range-based queries
Reducing the need for a shard key
Ensuring even data distribution across shards
In MongoDB, which data modeling concept allows for representing one-to-many relationships without joins?
Foreign keys
Embedded documents
Data duplication
Junction tables