A stateless API tier spikes tenfold several times a day, and the SLA forbids downtime when capacity changes. Its relational database is single-writer, cannot be sharded, and tolerates maintenance windows. Which scaling design is BEST?
Show the answer
Correct answerC. Scale the API tier horizontally and the database vertically
AWhy not this: A database that cannot be sharded and has a single writer cannot be scaled out by adding writers.
BWhy not this: Resizing the API tier typically requires restarts, caps out at the size of one node and leaves a single point of failure, which breaks the no-downtime SLA.
CWhy this is right: Stateless API nodes scale out with no downtime, while the unshardable single-writer database can only grow by adding resources to the node.
DWhy not this: Reverses the fit: the stateless tier is the one that scales out easily, and the unshardable database cannot scale out.
Stateless instances can be added or removed behind a load balancer without downtime, which suits frequent spikes. A single-writer database that cannot be sharded can only grow by getting a bigger node. Vertical scaling of the API tier needs restarts and leaves a single point of failure.