CS FundamentalsModerateTCS · Infosys

A database server is upgraded from 8 to 32 vCPUs to handle more load, while a stateless web tier grows from 4 to 12 identical instances behind a load balancer. Which statement is correct?

  1. A. Both are horizontal scaling
  2. B. The database was scaled vertically (bigger machine, with an upper limit and often downtime) and the web tier horizontally (more machines, which needs statelessness or shared state)
  3. C. Both are vertical scaling
  4. D. The database was scaled horizontally because it has more CPUs

Correct answer: B. The database was scaled vertically (bigger machine, with an upper limit and often downtime) and the web tier horizontally (more machines, which needs statelessness or shared state)

Scaling up adds resources to one node; scaling out adds nodes. Stateless services scale out easily, while databases often scale up or need replication and sharding to scale out.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic