What does the 'Extended Reference' pattern in MongoDB schema design aim to achieve?
Enforcing data integrity rules across multiple collections
Storing an entire referenced document within the main document
Creating a denormalized view of data for specific queries
Combining embedding and referencing for optimal performance
When should you consider using a hashed index in MongoDB?
When preserving the sort order of results is crucial.
To index geospatial data for location-based queries.
For highly selective queries on a single field.
When you need to perform exact value lookups.
What is the purpose of the $lookup stage in the MongoDB aggregation pipeline?
Filtering documents
Joining documents from different collections
Sorting documents
Updating documents
What is a crucial aspect to consider regarding performance when working with transactions in MongoDB?
Transactions generally have no impact on performance and can be used liberally.
Transactions are only recommended for read-only operations to maintain data consistency.
Transactions always improve performance by grouping related operations.
Transactions can introduce additional overhead, so it's essential to use them judiciously where ACID properties are strictly required.
What is the minimum number of nodes required to set up a MongoDB replica set?
3
2
1
7
In a compound index {field1: 1, field2: -1}, what does the '-1' signify for 'field2'?
Ascending order sort.
Mark 'field2' as a sparse field.
Exclude 'field2' from the index.
Descending order sort.
What is the primary purpose of sharding in MongoDB?
Simplifying data backups and restoration
Improving query performance by distributing data
Providing real-time data analytics capabilities
Enhancing data security through encryption
Which of the following is a disadvantage of using the MongoDB In-Memory Storage Engine?
Lack of support for indexing
Increased complexity in configuration
Slower write speeds compared to WiredTiger
Limited data size capacity
Which of the following is NOT a recommended practice for performance tuning in MongoDB?
Monitoring and profiling query performance
Optimizing schema design for data access patterns
Running multiple instances of mongod on a single core machine
Using appropriate indexes for frequently queried fields
What is the primary purpose of replication in MongoDB?
Simplifying data backups
Ensuring high availability in case of failures
Improving read performance
Reducing data storage costs