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?
- A. Both are horizontal scaling
- 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)
- C. Both are vertical scaling
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A product page is served using cache-aside with a 10-minute TTL. An admin updates a price in the database, and for several minutes some…
- A service spreads 6 instances across 3 availability zones in one region (2 per zone) and needs at least 4 instances running to handle peak…
- A test in the CI suite passes and fails randomly on the same commit because it depends on timing. Developers have started re-running…
- A call hierarchy has 6 modules: M1 calls M2 and M3; M2 calls M4 and M5; M3 calls M6. Using the usual counts (top-down needs a stub for…
- A developer fixes a login bug. The tester first checks that the reported bug is really gone, then re-runs a set of existing login and…
- Match each performance test with its purpose. P: load test. Q: stress test. R: soak (endurance) test. S: spike test. 1. Run at normal load…