0
0
MongoDBquery~5 mins

Horizontal scaling mental model in MongoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is horizontal scaling in system design?
Horizontal scaling means adding more machines or servers to handle increased load, instead of making one machine more powerful.
Click to reveal answer
beginner
How does horizontal scaling differ from vertical scaling?
Horizontal scaling adds more servers; vertical scaling upgrades a single server's resources like CPU or RAM.
Click to reveal answer
intermediate
Why is horizontal scaling preferred for MongoDB in large applications?
Because MongoDB supports sharding, which splits data across many servers, allowing the system to grow easily and handle more users.
Click to reveal answer
intermediate
What is sharding in MongoDB's horizontal scaling?
Sharding is dividing the database into smaller parts called shards, each on different servers, so queries and data storage are spread out.
Click to reveal answer
advanced
Name one challenge of horizontal scaling in databases.
Keeping data consistent and synchronized across many servers can be difficult and requires careful design.
Click to reveal answer
What does horizontal scaling involve?
AAdding more servers to share the load
BUpgrading CPU and RAM of one server
CReducing the number of servers
DUsing a faster hard drive
In MongoDB, what feature supports horizontal scaling?
AReplication
BSharding
CIndexing
DAggregation
Which is a benefit of horizontal scaling?
ASimpler database design
BCheaper to upgrade one server
CLess network traffic
DEasier to handle more users
What is a common challenge with horizontal scaling?
ARunning out of CPU power
BLimited disk space on one server
CData consistency across servers
DSlower network speed on one machine
Vertical scaling means:
AUpgrading a single server's hardware
BAdding more servers
CSplitting data into shards
DUsing cloud services
Explain the concept of horizontal scaling and how MongoDB uses it.
Think about spreading work across many machines.
You got /4 concepts.
    What are the main challenges when implementing horizontal scaling in a database system?
    Consider what happens when data is on many servers.
    You got /4 concepts.