What is the primary advantage of using hashed sharding in MongoDB?
Reducing the need for a shard key
Optimizing range-based queries
Simplifying data migration between shards
Ensuring even data distribution across shards
What is the default storage engine for MongoDB versions 4.2 and later?
RocksDB
InMemory
WiredTiger
MMAPv1
Which index type in MongoDB is specifically designed to support queries that involve ranges of data?
Compound Index
Geospatial Index
Text Index
Single Field Index
When should you consider using a hashed index in MongoDB?
For highly selective queries on a single field.
When you need to perform exact value lookups.
When preserving the sort order of results is crucial.
To index geospatial data for location-based queries.
In MongoDB aggregation, what does the $unwind stage do?
Sorts documents in ascending order
Groups documents by a specific field
Merges multiple documents into one
Deconstructs an array field into separate documents
What is the minimum number of nodes required to set up a MongoDB replica set?
7
1
3
2
What is the primary consideration for choosing between HDDs and SSDs for MongoDB storage?
Storage Capacity
Random Read/Write Performance
Data Redundancy
Cost per Gigabyte
Which of these is a potential drawback of embedding documents in MongoDB?
Data duplication if not carefully managed
Reduced performance when retrieving deeply nested data
Increased complexity in querying related data
Inability to represent one-to-many relationships effectively
Which component of MongoDB's architecture is responsible for managing data access and concurrency?
Config Server
Query Engine
Storage Engine
Router
Which geospatial query operator in MongoDB finds documents within a specific radius?
$geoIntersects
$geoWithin
$nearSphere
$near