What does the 'Extended Reference' pattern in MongoDB schema design aim to achieve?
Enforcing data integrity rules across multiple collections
Creating a denormalized view of data for specific queries
Combining embedding and referencing for optimal performance
Storing an entire referenced document within the main document
When is it generally MORE advantageous to use referencing over embedding in MongoDB?
When you need to enforce data integrity with constraints
When the embedded data is expected to change infrequently
When the related data is frequently accessed together
When the related data is quite large or might grow significantly
What is the role of SSL/TLS in securing MongoDB deployments?
Providing a mechanism for user authentication
Auditing and logging database access
Encrypting communication between MongoDB clients and servers
Encrypting data at rest within the database files
What is a key consideration for optimizing aggregation pipelines with large datasets in MongoDB?
Using JavaScript functions for complex logic
Avoiding the $match stage for optimal performance
Minimizing the use of indexes
Performing joins as early as possible in the pipeline
What is a key difference between single-document writes and multi-document transactions in MongoDB?
Single-document writes offer ACID guarantees, while multi-document transactions do not.
Multi-document transactions can only update a single document at a time.
Single-document writes are only supported in sharded clusters, while multi-document transactions work in both standalone and sharded environments.
Multi-document transactions provide atomicity across multiple documents, while single-document writes do not.
Which of the following is a recommended practice when using transactions in MongoDB?
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.
Including as many operations as possible within a single transaction to simplify code logic.
Keeping transactions short-lived and focused to minimize locking overhead and potential for conflicts.
Which security feature helps ensure that only authorized personnel can modify the configuration settings of a MongoDB deployment?
Auditing
Data Masking
Field Level Encryption
Role-Based Access Control (RBAC)
What MongoDB tool is most suitable for visualizing and analyzing query performance?
mongoexport
MongoDB Profiler
mongoimport
mongostat
Which of the following is a disadvantage of using the MongoDB In-Memory Storage Engine?
Lack of support for indexing
Slower write speeds compared to WiredTiger
Increased complexity in configuration
Limited data size capacity
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.
Faster retrieval of documents matching multiple fields.
Simplified management of index structures.