InterviewStack.io LogoInterviewStack.io

Scaling Fundamentals and Concepts Questions

Core concepts required to reason about scaling decisions and to communicate clear approaches. Topics include the difference between vertical and horizontal scaling and their trade offs; stateless versus stateful service design and why statelessness enables horizontal scaling; basic load balancing and request distribution strategies; when and how to apply caching replication and partitioning; simple autoscaling concepts and common metrics used to trigger scaling; how to identify common bottlenecks and apply pragmatic mitigations; and fundamental trade offs between latency throughput cost and complexity. This topic tests conceptual clarity and the ability to map requirements to simple scaling approaches.

MediumTechnical
60 practiced
Implement an LRU cache in Python with two methods: get(key) -> value or -1 if missing, and put(key, value). The cache should have a fixed capacity and guarantee O(1) get and put. Include a brief explanation of the data structures you used and why they achieve O(1).
EasyTechnical
68 practiced
Explain synchronous versus asynchronous replication for copies of data. Describe trade-offs in write latency, durability, and availability. Give two scenarios where synchronous replication is preferred and two where asynchronous replication is more practical.
MediumTechnical
65 practiced
Implement a token-bucket rate limiter in Java or Python with method allow_request(client_id) that returns true if the request is allowed. The limiter should support per-client limits and be safe for single-process use. Briefly explain how you'd extend it for a distributed environment.
EasyTechnical
61 practiced
Explain the difference between vertical (scale-up) and horizontal (scale-out) scaling. For each approach list the main benefits and trade-offs across capacity, fault-domain isolation, cost, operational complexity, and deployment downtime. Give concrete examples of when you would choose vertical scaling versus horizontal scaling for a web service.
MediumTechnical
74 practiced
You operate a caching tier that occasionally experiences 'hot key' spikes which overwhelm specific cache nodes. Propose at least five practical mitigations for hot keys including both short-term and long-term measures such as key hashing changes, request coalescing, pre-warming, and rate limiting.

Unlock Full Question Bank

Get access to hundreds of Scaling Fundamentals and Concepts interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.