FundamentalsBeginner
Interview practice
Practise out loud, then check yourself
Read a question, answer it as if an interviewer asked, then compare with the short answer. Anything you mark for later comes back in your review queue.
Showing 46 questions
FundamentalsBeginner
When would you choose UDP over TCP?
FundamentalsBeginner
How would you design a REST API for a to-do app?
FundamentalsIntermediate
How would you push real-time updates to users, like new chat messages?
FundamentalsBeginner
What's the difference between latency and throughput, and why look at p99?
FundamentalsIntermediate
JSON or Protobuf for communication between internal services?
Backend architectureIntermediate
Should a new startup build microservices?
Backend architectureBeginner
How does a load balancer decide where to send a request?
Backend architectureBeginner
What's the difference between vertical and horizontal scaling?
Backend architectureIntermediate
When would you put a message queue between two services?
Backend architectureIntermediate
Design a rate limiter for a public API.
Backend architectureAdvanced
One slow dependency is taking down your whole service. How do you protect against that?
Backend architectureIntermediate
What are the pros and cons of event-driven architecture?
Database designIntermediate
How do you choose between SQL and NoSQL?
Database designIntermediate
How does a database index work, and when can it hurt?
Database designIntermediate
Users sometimes don't see a comment they just posted. What's going on and how do you fix it?
Database designAdvanced
How would you shard a table of user posts, and what goes wrong?
Database designBeginner
Explain ACID.
Database designAdvanced
Two users buy the last ticket at the same time. How do you stop double-selling?
Database designAdvanced
Explain the CAP theorem with an example.
Database designIntermediate
Your database is hitting 'too many connections' after scaling out app servers. What do you do?
Caching and performanceIntermediate
How would you add caching to a read-heavy product page?
Caching and performanceIntermediate
Compare write-through and write-back caching.
Caching and performanceIntermediate
How do you keep a cache consistent with the database?
Caching and performanceAdvanced
Every time your home page cache expires, the database spikes. Why, and how do you fix it?
Caching and performanceAdvanced
A celebrity's profile key gets 200,000 reads a second. How do you handle it?
Caching and performanceBeginner
What does a CDN do and when would you use one?
Distributed systemsAdvanced
Why do systems like etcd use an odd number of nodes?
Distributed systemsAdvanced
What is split brain and how do you prevent it?
Distributed systemsIntermediate
A client retries a payment request after a timeout. How do you avoid charging twice?
Distributed systemsAdvanced
Can a message queue deliver exactly once?
Distributed systemsAdvanced
How do you keep an order consistent across order, payment and inventory services?
Distributed systemsIntermediate
Three services in a chain are each 99.9% available. What's the overall availability, and how do you improve it?
Distributed systemsAdvanced
In a multi-region, eventually consistent database, two users edit the same record at once. What happens?
Reliability and infrastructureIntermediate
Checkout latency doubled. How do you find the cause?
Reliability and infrastructureIntermediate
What are SLOs and error budgets, and how do they change alerting?
Reliability and infrastructureIntermediate
What's the difference between liveness and readiness checks?
Reliability and infrastructureAdvanced
How would you plan disaster recovery for a payments service?
Reliability and infrastructureIntermediate
How do you deploy several times a day without breaking production?
Reliability and infrastructureIntermediate
What does Kubernetes give you, in one minute?
Reliability and infrastructureIntermediate
Your autoscaler can't keep up with sudden traffic spikes. What do you do?
AI infrastructureAdvanced
How much GPU memory does serving a 13B model need?
AI infrastructureAdvanced
How would you increase the throughput of an LLM serving cluster?
AI infrastructureAdvanced
Design a chatbot that answers questions from a company's internal documents.
AI infrastructureAdvanced
Why do vector databases use approximate search?
AI infrastructureIntermediate