Backend for AI Systems: Scenarios
Questions covered
- Your chat endpoint times out behind the load balancer for long answers. Fix it.
- Users close the browser mid-generation, but you keep paying for tokens. What do you do?
- Design the backend for document Q&A where users upload PDFs.
- Your API calls three model providers; one is having an outage. How should your backend behave?
- How would you implement per-user usage limits for a freemium AI product?
- Latency p95 is 9 s; the target is 3 s. How do you approach it?
This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.