What does the 'Extended Reference' pattern in MongoDB schema design aim to achieve?
Combining embedding and referencing for optimal performance
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
What is the primary purpose of the MongoDB In-Memory Storage Engine?
High-speed data analysis
Long-term data persistence
Full-text search indexing
Reducing storage costs
Which stage allows for conditional execution of pipeline stages in MongoDB's aggregation framework?
$cond
$switch
$case
$ifNull
Which operator within the $lookup stage specifies the field in the 'joined' collection that should match the 'localField'?
from
localField
foreignField
as
What happens during a failover event in a MongoDB replica set?
The primary node automatically recovers.
All read and write operations are halted indefinitely.
A new primary node is elected from the available secondaries.
Data is automatically restored from backups.
Which operator is used to create a text index in MongoDB?
$index
$text
$createIndex
$geo
What happens to a multi-document transaction in MongoDB if one of the operations within the transaction fails?
The entire transaction is rolled back, ensuring atomicity and data consistency.
The transaction enters a paused state, allowing the user to manually resolve the error before resuming.
The transaction continues, ignoring the failed operation and proceeding with the rest.
The transaction partially succeeds, applying only the successful operations.
Which security feature helps ensure that only authorized personnel can modify the configuration settings of a MongoDB deployment?
Role-Based Access Control (RBAC)
Field Level Encryption
Auditing
Data Masking
In MongoDB, what does 'least privilege' refer to in the context of security?
Granting users only the minimum permissions necessary to perform their tasks
Minimizing the number of users with administrative access
Disabling all unnecessary MongoDB features
Using the least complex password policy possible
What is the purpose of using the 'sparse' option when creating an index in MongoDB?
To distribute the index data across multiple shards.
To limit the index to only documents containing the indexed field.
To create a case-insensitive index for text search.
To compress the index data for reduced storage space.