Choosing upgrading one server as horizontal scaling
Confusing network upgrades with scaling
Ignoring load balancer role
3. Consider a web application initially running on a single server with 8 CPU cores and 16GB RAM. If the traffic doubles, which scaling approach will likely double the capacity most efficiently?
medium
A. Upgrade the server to 16 CPU cores and 32GB RAM (vertical scaling)
B. Add one more identical server and use a load balancer (horizontal scaling)
C. Add caching layer without changing servers
D. Increase database storage size
Solution
Step 1: Analyze capacity needs for doubled traffic
Doubling traffic usually requires doubling processing power or distributing load.
Step 2: Compare vertical vs horizontal scaling efficiency
Vertical scaling (Upgrade the server to 16 CPU cores and 32GB RAM (vertical scaling)) can be costly and limited by hardware max. Horizontal scaling (Add one more identical server and use a load balancer (horizontal scaling)) adds another server to share load, often more efficient and scalable.
Final Answer:
Add one more identical server and use a load balancer (horizontal scaling) -> Option B
Quick Check:
Doubling capacity = add server (horizontal) better than upgrade [OK]
Hint: Doubling load? Add servers horizontally, not just upgrade one [OK]
Confusing storage increase with processing capacity
4. A system uses vertical scaling by upgrading a server's CPU and RAM. After some time, the server crashes under load. What is the most likely cause?
medium
A. The server reached hardware limits and cannot scale further vertically
B. The load balancer is misconfigured
C. The database storage is full
D. The network bandwidth is too high
Solution
Step 1: Understand vertical scaling limits
Vertical scaling improves one machine but has physical hardware limits beyond which it cannot handle more load.
Step 2: Analyze crash cause
Since the server crashes under load after upgrades, it likely hit max capacity. Other options relate to load balancer, storage, or network, which are less likely causes here.
Final Answer:
The server reached hardware limits and cannot scale further vertically -> Option A
Hint: Vertical scaling hits max hardware limits causing failures [OK]
Common Mistakes:
Blaming load balancer when none is used
Confusing storage issues with CPU/RAM limits
Ignoring hardware capacity limits
5. A startup expects rapid user growth and unpredictable traffic spikes. They want a scalable system with minimal downtime and cost efficiency. Which scaling strategy should they prioritize?
hard
A. Vertical scaling by upgrading a powerful single server
B. Relying on manual server upgrades during peak times
C. Horizontal scaling with multiple servers and auto-scaling
D. Using a single server with a large database
Solution
Step 1: Identify startup needs
Rapid growth and unpredictable spikes require flexible, scalable solutions that can adjust resources quickly without downtime.
Step 2: Evaluate scaling options for flexibility and cost
Vertical scaling (Vertical scaling by upgrading a powerful single server) is limited and costly for spikes. Manual upgrades (Relying on manual server upgrades during peak times) cause downtime and delay. Single server (Using a single server with a large database) risks failure. Horizontal scaling with auto-scaling (Horizontal scaling with multiple servers and auto-scaling) adds/removes servers dynamically, balancing cost and uptime.
Final Answer:
Horizontal scaling with multiple servers and auto-scaling -> Option C
Quick Check:
Rapid growth needs horizontal auto-scaling for cost and uptime [OK]
Hint: Rapid growth? Use horizontal auto-scaling for flexibility [OK]
Common Mistakes:
Choosing vertical scaling for unpredictable spikes
Ignoring downtime caused by manual upgrades
Relying on single server risking failure
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.