Which statement correctly contrasts vertical and horizontal scaling for a web tier?
ABoth require application changes, since neither approach affects the instance count or the load balancer configuration at all
BVertical scaling enlarges one instance and often needs a restart, while horizontal scaling adds instances and requires statelessness or load balancingCorrect answer
CVertical scaling adds more instances to the tier, while horizontal scaling enlarges the instance type, so the two terms are very often swapped in practice
DHorizontal scaling is limited by the largest instance size that the provider offers, so it cannot grow beyond a single machine without sharding
Correct answer
B. Vertical scaling enlarges one instance and often needs a restart, while horizontal scaling adds instances and requires statelessness or load balancing
Scale up versus scale out: vertical scaling changes the machine size, is simple for legacy software but capped by the largest instance and usually needs downtime to resize. Horizontal scaling adds nodes behind a load balancer, giving near-linear capacity and fault tolerance, but demands that sessions and state live outside the instance. Autoscaling groups are the standard mechanism for the horizontal case.