advancedTop 100 Interview Questions
What's the difference between vertical and horizontal scaling for a containerized service?
Vertical scaling increases the resources (CPU/memory limits) given to existing container instances, which has a hard ceiling (the host's physical capacity) and usually requires a restart to apply. Horizontal scaling adds more replica instances behind a load balancer, which scales further, improves fault tolerance (more independent failure points), but requires the service to be stateless or to externalize its state first.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response