An enterprise customer bulk-uploads its whole document library while its staff keep asking the assistant questions. Keep answers fast, show new documents within five minutes and ride out a pgvector failover on budget.
This is the practice version. Assessments always use a variant you have never seen.
DocuMind is an AI assistant. It answers staff questions from their own company files (RAG). Today a global insurer uploads its whole library: 2 million files. Its staff keep asking questions at the same time. Expect this traffic:
New files must show up in answers within 5 minutes.
| Metric | Target |
|---|---|
| p95 latency | under 120 ms |
| Error rate | under 0.5 % |
| Estimated infra cost | under $1,500 per month |
Requests pass an API gateway with no rate limit. Next is the ingest and query API: 4 vCPU, 3 to 12 instances. The API reads files from object storage. It sends every write and every search to one medium pgvector primary.
Add parts from the palette, connect them and set them up. Run the load test as often as you like. In the Viva you will explain how uploads and questions share the system.
| Design a Flash-Sale Inventory SystemSystem designTiers: Mid-levelEditorial | Hard | System simulation | 40 min | Calibrating |
| Design a Lossless Audit-Log Store for an AI Agent PlatformSystem designTiers: Mid-levelEditorial | Hard | System simulation | 45 min | Calibrating |
| Scale an AI Support Assistant for Launch DaySystem designTiers: JuniorEditorial | Medium | System simulation | 35 min | Calibrating |