What is the primary purpose of sharding in MongoDB?
Improving query performance by distributing data
Providing real-time data analytics capabilities
Simplifying data backups and restoration
Enhancing data security through encryption
What is the primary purpose of replication in MongoDB?
Improving read performance
Ensuring high availability in case of failures
Reducing data storage costs
Simplifying data backups
What is the primary purpose of roles in MongoDB's authorization system?
To encrypt data at rest
To manage user authentication
To define granular permissions for database operations
To enforce data validation rules
Which sharding strategy allows for geographically distributing data to optimize for local user access?
Hashed sharding
Zone sharding
Ranged sharding
Random sharding
Which stage of the MongoDB write path is responsible for applying write operations to the journal?
Write to Journal
Apply Operation
Intent Shared Lock
Release Locks
In MongoDB, which data modeling concept allows for representing one-to-many relationships without joins?
Foreign keys
Embedded documents
Data duplication
Junction tables
Which of these is a potential drawback of embedding documents in MongoDB?
Reduced performance when retrieving deeply nested data
Inability to represent one-to-many relationships effectively
Increased complexity in querying related data
Data duplication if not carefully managed
What role does an arbiter node play in a MongoDB replica set?
It participates in elections but doesn't store data.
It manages backups and restores for the replica set.
It processes read and write operations like other nodes.
It stores a copy of the data for redundancy.
What is the default storage engine for MongoDB versions 4.2 and later?
RocksDB
WiredTiger
MMAPv1
InMemory
What does the 'Extended Reference' pattern in MongoDB schema design aim to achieve?
Creating a denormalized view of data for specific queries
Enforcing data integrity rules across multiple collections
Storing an entire referenced document within the main document
Combining embedding and referencing for optimal performance