Scalability Patterns and Techniques Questions

Scaling a system to handle growth in traffic and data: horizontal versus vertical scaling, statelessness, sharding and partitioning strategies, read replicas, and connection pooling. Covers capacity estimation, identifying bottlenecks, and the tradeoffs each scaling axis introduces. The general toolkit for taking a design from thousands to millions of users.

EasyTechnical
50 practiced

Compare a monolithic multi-model inference service against decomposing into one microservice per model. Assume you need to serve a model at roughly 1,000 requests/sec with 50ms P95 latency. Weigh development velocity, deployment complexity, testability, coupling, observability, and resource utilization. For a small team starting from a proof of concept, which would you recommend, and why?

HardTechnical
36 practiced

You're designing a cloud-hosted, stateful ML inference service backed by GPUs that must serve real-time predictions with P95 latency under 50ms. Compare vertical scaling (bigger GPU instances) versus horizontal scaling (more replicas, model sharding). Discuss cost per prediction, cold-start and model-loading time, batching opportunities, GPU utilization, autoscaling constraints, and operational complexity. Recommend an architecture.

EasyTechnical
30 practiced

Describe the different things you might cache in a machine-learning serving stack: prediction results, feature values, and model artifacts. For each, explain what a good cache key looks like, what drives your hit rate, how you'd think about freshness, and how staleness in that cache could affect model quality or business metrics.

HardSystem Design
28 practiced

You operate many model services on heterogeneous hardware. Design an autoscaling and scheduling policy that optimizes cost subject to multiple SLOs (latency, throughput, model accuracy). Cover model placement, pre-warming, bin-packing, priority queues, and how you'd handle cold starts for large models.

EasyTechnical
28 practiced

Compare stateless and stateful approaches to model serving. For an online recommendation model that relies on user session state and short-term interaction history, when would you prefer stateful serving over external state storage? Discuss the implications for scalability, fault tolerance, deployment complexity, and operational cost.

Unlock Full Question Bank

Get access to all 7 Scalability Patterns and Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.