An online ticket seller hosts its storefront on several identical virtual machines. When popular concerts go on sale, traffic jumps sharply for a few hours and the existing VMs become overwhelmed. The company wants to handle these peaks by increasing the number of servers and then reducing the number after the sale ends.
Which type of scaling meets this requirement?
Horizontal scaling changes the number of resources. Scaling out adds instances such as VMs or containers during peaks, and scaling in removes them when demand falls. Either action can be automatic or manual. Because you pay only for what you use, scaling in after the peak also reduces cost.
- Correct: Horizontal scaling: scale out during the sale, then scale in afterwards. Horizontal scaling adds or removes resources, such as VMs or containers, to match demand.
- Not correct: Vertical scaling: scale up during the sale, then scale down afterwards. Vertical scaling changes the CPU or RAM of existing VMs. It does not change how many servers there are, which is what the company asked for.
- Not correct: Horizontal scaling: scale up during the sale, then scale down afterwards. This also mixes up the terms. Scaling up and down changes the capabilities of a resource, which is vertical scaling.
- Not correct: Vertical scaling: scale out during the sale, then scale in afterwards. This mixes up the terms. Scaling out and in is horizontal scaling. Vertical scaling is described as scaling up or down.