The 'Attribute Pattern' in MongoDB schema design is most suitable for...
Representing historical data with frequent changes
Storing arrays of simple, non-repeating values
Optimizing queries that require aggregation of data
Modeling relationships between documents in different collections
What is the primary advantage of using hashed sharding in MongoDB?
Optimizing range-based queries
Simplifying data migration between shards
Reducing the need for a shard key
Ensuring even data distribution across shards
What is a crucial aspect to consider regarding performance when working with transactions in MongoDB?
Transactions are only recommended for read-only operations to maintain data consistency.
Transactions generally have no impact on performance and can be used liberally.
Transactions can introduce additional overhead, so it's essential to use them judiciously where ACID properties are strictly required.
Transactions always improve performance by grouping related operations.
Which operator within the $lookup stage specifies the field in the 'joined' collection that should match the 'localField'?
as
localField
from
foreignField
Which sharding strategy allows for geographically distributing data to optimize for local user access?
Hashed sharding
Ranged sharding
Random sharding
Zone sharding
In MongoDB aggregation, what does the $unwind stage do?
Groups documents by a specific field
Sorts documents in ascending order
Deconstructs an array field into separate documents
Merges multiple documents into one
What is the default storage engine for MongoDB versions 4.2 and later?
MMAPv1
RocksDB
InMemory
WiredTiger
In MongoDB, what does 'least privilege' refer to in the context of security?
Disabling all unnecessary MongoDB features
Granting users only the minimum permissions necessary to perform their tasks
Using the least complex password policy possible
Minimizing the number of users with administrative access
What is the minimum number of config servers required for a production-ready sharded cluster in MongoDB?
3
2
5
1
In WiredTiger, what data structure is used to store data on disk?
B-Tree
Hash Table
Skip List
Log-Structured Merge Tree