Imagine you have a small shop and you want to serve more customers. You decide to buy a bigger cash register that can handle more transactions at once. In database terms, this is called vertical scaling.
Which of the following best explains how vertical scaling helps handle data growth?
Think about upgrading the size of one machine versus adding more machines.
Vertical scaling means making one server stronger by adding resources like CPU, RAM, or storage. This helps the database handle more data and queries on the same machine.
Suppose your shop is growing fast and one big cash register is not enough. You decide to open more cash registers to serve customers in parallel. This is similar to horizontal scaling in databases.
Which option best describes horizontal scaling?
Think about adding more machines instead of making one machine bigger.
Horizontal scaling means adding more servers to distribute the database load. Data is split or replicated across these servers to handle more users and data volume.
When scaling databases, vertical and horizontal scaling have different challenges. Which of the following is a challenge unique to horizontal scaling?
Think about what happens when data is spread over many machines.
Horizontal scaling involves multiple servers, so keeping data consistent and synchronized across them is a key challenge. Vertical scaling does not have this issue as data stays on one machine.
Choosing between vertical and horizontal scaling depends on tradeoffs. Which of the following is a tradeoff when choosing vertical scaling?
Think about the limits of one machine versus many machines.
Vertical scaling is limited by how powerful one machine can be. Once it reaches its max capacity, you cannot scale further without switching to horizontal scaling.
Your database currently runs on one server handling 1000 queries per second. You expect traffic to grow to 10,000 queries per second. Each server can handle 1500 queries per second before performance degrades.
How many servers do you need to handle the expected load with horizontal scaling?
Divide total expected queries by capacity per server, then round up.
10,000 queries / 1,500 queries per server = 6.66 servers. Since you cannot have a fraction of a server, round up to 7 servers.