0
0
MongoDBquery~5 mins

Chunks and balancer concept in MongoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a chunk in MongoDB sharding?
A chunk is a contiguous range of shard key values that MongoDB uses to split data into manageable pieces for distribution across shards.
Click to reveal answer
beginner
What role does the balancer play in MongoDB?
The balancer moves chunks between shards to evenly distribute data and workload, ensuring no single shard is overloaded.
Click to reveal answer
intermediate
How does MongoDB decide when to split a chunk?
MongoDB splits a chunk when it grows beyond a configured size limit to keep data balanced and queries efficient.
Click to reveal answer
intermediate
Why is balancing important in a sharded MongoDB cluster?
Balancing prevents hotspots by distributing data evenly, which improves performance and resource use across all shards.
Click to reveal answer
advanced
What happens if the balancer is turned off in MongoDB?
Without the balancer, chunks won't move between shards, which can cause uneven data distribution and slow queries on overloaded shards.
Click to reveal answer
What is a chunk in MongoDB sharding?
AA piece of data representing a range of shard key values
BA single document in a collection
CA backup copy of data
DA user session in the database
What does the balancer do in a MongoDB cluster?
AMoves chunks between shards to balance data
BDeletes old data automatically
CCreates backups of the database
DMonitors user activity
When does MongoDB split a chunk?
AWhen the database restarts
BWhen a user requests it
CWhen the chunk size exceeds a set limit
DWhen a shard is removed
Why is balancing data important in sharding?
ATo increase the size of chunks
BTo speed up backups
CTo reduce the number of shards
DTo prevent any shard from becoming overloaded
What can happen if the balancer is disabled?
AData will be deleted from shards
BData may become unevenly distributed causing slow queries
CNew shards will be added automatically
DChunks will automatically merge
Explain what chunks are and how they help in MongoDB sharding.
Think about how data is split to spread across servers.
You got /4 concepts.
    Describe the purpose of the balancer in a MongoDB sharded cluster.
    Consider what keeps the data spread out evenly.
    You got /4 concepts.