Scalability interview questions
100 System Design practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Scalability questionsBeginner
- A viral marketing campaign
- Adding a load balancer
- An API returns 100,000 rows
- API gateway
- Availability zones
- Batching for throughput
- CDN for scaling
- Connection pooling
- Database CPU is maxed on reads
- Database refuses new connections
- DNS change not taking effect
- Elasticity vs scalability
- Email sending slows signups
- Health check removes every server
- Health checks
- Horizontal scaling explained
- Images are slowing the site
- Layer 4 vs layer 7 load balancing
- Load balancing algorithms
- Making a service stateless
- Pagination for scalable APIs
- Queues help scaling
- Read replicas
- Reverse proxy
- Scaling a new startup app
- Separating static and dynamic content
- Setting up autoscaling rules
- Sticky sessions
- Users logged out after scaling
- Vertical scaling explained
- What a load balancer does
- What autoscaling is
- What DNS does in system design
- Why the database is usually the scaling bottleneck
Intermediate
- A partner's script floods your API
- A shared file server limits scaling
- Adding cache nodes wipes the cache
- Autoscaling keeps flapping
- Bulkhead pattern
- Choosing autoscaling metrics
- Choosing where to add a second region
- Consistent hashing
- CQRS for scaling
- Dashboard queries hurt the main database
- Denormalisation for read scaling
- Edge computing
- Errors during every deploy
- Global server load balancing
- Lambda functions overwhelm the database
- Long-lived connections and scaling
- Making the load balancer itself highly available
- Midnight batch jobs crash the database
- More servers did not help
- One server gets most of the traffic
- One slow dependency freezes the whole service
- Queue backlog keeps growing
- Rate limiting as a scaling tool
- Region failover with DNS
- Scaling a WebSocket server
- Scaling speed and cold starts
- Serverless scaling
- Service discovery
- Shared-nothing architecture
- Slow profile page with many joins
- Speeding up a global login redirect
- Thundering herd
- Why timeouts matter for scalability
Experienced
- A celebrity's post melts a cache node
- Adding a database proxy layer
- Admission control
- Anycast for global scale
- Autoscaling bill doubled
- Avoiding coordination
- Data locality
- Deciding what to drop under overload
- Designing a cell router
- Designing degraded modes in advance
- Flash sale overwhelms autoscaling
- Global counter becomes a bottleneck
- Going active-active across regions
- Handling hot keys at scale
- Load testing realistically
- N+1 and N+2 redundancy
- Nightly batch no longer finishes
- Noisy pods on shared nodes
- Onboarding a customer 50x bigger than others
- Power of two random choices
- Predictive autoscaling
- Queue becomes the bottleneck
- Replica lag grows under load
- Same scale for half the servers
- Scale from 1 to 100 million users
- Scaling stateful services
- Scaling with data residency rules
- Search traffic grows 10x
- Should we rewrite for scale?
- Why scaling is not linear
- Work stealing and partition imbalance
- Write throughput hits the limit
- Your growth will overload a partner