Skip to content

GenAI System Design Interview Questions

15 comprehensive interview questions with detailed solutions


Learning Objectives

By completing this section, you will be able to:

  • Answer common GenAI system design questions confidently in interviews
  • Apply the 6-step framework to structure your responses
  • Discuss trade-offs and justify architectural decisions
  • Demonstrate production-level thinking on safety, scale, and operations
  • Handle follow-up questions with depth and clarity

Question Overview

#QuestionCategoryDifficulty
1Design a customer support chatbotChatbotMedium
2Design a RAG system for legal documentsRAGHard
3Design GitHub CopilotCodeHard
4Design a content moderation systemSafetyMedium
5Design a real-time translation systemReal-timeMedium
6Design an AI writing assistantContentMedium
7Design a meeting summarization systemContentMedium
8Design an AI code review systemCodeHard
9Design an enterprise search systemRAGHard
10Design a conversational shopping assistantChatbotMedium
11Design a document Q&A systemRAGMedium
12Design an automated email response systemContentMedium
13Design a personalized learning assistantChatbotHard
14Design a multi-modal content generatorContentHard
15Design an AI-powered help centerRAGMedium

Question 1: Design a Customer Support Chatbot

Problem Statement

Design an AI-powered customer support chatbot for an e-commerce company with 10M users, handling 100K conversations per day.

Clarifying Questions

  • User base: B2C customers, mixed technical expertise
  • Scope: Order status, returns, product questions, billing
  • Scale: 100K conversations/day, 500 concurrent peak
  • Quality: 70% first-contact resolution, <5% escalation to bad outcomes
  • Integration: Existing CRM (Zendesk), order management system

Solution Architecture

Key Design Decisions

ComponentDecisionRationale
LLMGPT-4 for complex, GPT-3.5 for simpleCost optimization with quality routing
ContextHybrid: recent full + summarized olderBalance cost and context quality
RAGHybrid search on FAQ + policiesHandle known queries efficiently
HandoffMulti-signal scoringBalance automation and user satisfaction
PersonaFriendly, professional, boundary-awareBrand alignment

Conversation Flow

Metrics

MetricTargetMeasurement
First-contact resolution70%% conversations resolved without handoff
Customer satisfaction4.2/5Post-chat survey
Average handle time❤️ minTime from start to resolution
Escalation rate<15%% transferred to human
Response latency<2 secP95 response time

Problem Statement

Design a document Q&A system for a law firm with 500K legal documents, requiring strict access control and citation accuracy.

Clarifying Questions

  • Documents: Contracts, case law, memos, briefs (500K docs, 50GB)
  • Users: 500 lawyers, different practice areas and client access
  • Quality: Answers must cite sources, high accuracy required
  • Security: Client confidentiality, privilege protection, audit trails
  • Scale: 10K queries/day, complex multi-hop questions

Solution Architecture

Access Control System

Trade-offs

DecisionOption AOption BChosenRationale
ChunkingFixed sizeLegal-aware (sections)Legal-awarePreserve legal context
SearchVector onlyHybrid + citationHybridLegal terms need exact match
Access controlPost-filterPre-filterPre-filterEfficiency at scale
CitationInlineSeparate sectionBothUsability + verification

Question 3: Design GitHub Copilot

Problem Statement

Design an AI code completion system that integrates with IDEs and provides intelligent code suggestions in real-time.

Clarifying Questions

  • Users: Individual developers and enterprises (10M users)
  • Languages: All major programming languages (Python, JS, Java, etc.)
  • Latency: <200ms for first suggestion
  • Features: Completion, chat, code explanation, test generation
  • Scale: 1B completions/day, 10M concurrent users

Solution Architecture

Context Window Strategy

Latency Optimization

ComponentLatencyOptimization
IDE → Gateway20msEdge servers
Auth/Rate limit5msToken caching
Context collection30msPre-indexed, incremental
Model inference100msSpeculative decoding, quantization
Post-processing20msParallel checks
Gateway → IDE20msStreaming
Total195ms

Question 4: Design a Content Moderation System

Problem Statement

Design an AI-powered content moderation system for a social media platform with 500M posts per day.

Clarifying Questions

  • Content types: Text, images, videos, links
  • Policies: Hate speech, violence, nudity, spam, misinformation
  • Scale: 500M posts/day, 99.9% must be processed within 1 minute
  • Quality: <1% false positive rate, <5% false negative for severe content
  • Appeals: Human review process for contested decisions

Solution Architecture

Classification Categories

CategorySeverityLatencyMethod
CSAMCritical<1sHash matching + ML
Violence/GoreHigh<10sImage classifier
Hate SpeechHigh<30sText classifier + LLM
NudityMedium<30sImage classifier
SpamLow<1minPattern + behavioral
MisinformationVariable<5minLLM + fact-check

Trade-offs

DecisionTrade-offChosen Approach
Speed vs AccuracyFast but more errors vs Slow but accurateTiered: fast for clear cases, slow for edge cases
Over vs Under-moderationUser frustration vs Platform riskCalibrate by severity: strict for severe
Automation vs HumanScale vs CostHuman review for appeals and training

Question 5: Design a Real-Time Translation System

Problem Statement

Design a real-time translation system for live video calls supporting 50 languages with sub-second latency.

Solution Architecture

Latency Requirements

End-to-end target: 800ms

Audio capture:      50ms  ██
VAD + buffering:   100ms  ████
ASR (streaming):   200ms  ████████
Translation:       200ms  ████████
TTS:               150ms  ██████
Output + sync:     100ms  ████
                   ─────
Total:             800ms

Key Design Decisions

ComponentDecisionRationale
ASRStreaming (Whisper)Low latency over accuracy
TranslationChunk-based with contextBalance latency and coherence
TTSNeural TTS with voice matchingNatural output
CachingCommon phrase cachingReduce latency for frequent phrases

Question 6: Design an AI Writing Assistant

Problem Statement

Design a writing assistant like Grammarly or Notion AI for 50M users.

Solution Architecture

Feature Comparison

FeatureLatencyModelComplexity
Grammar checkReal-timeSmall/Rule-basedLow
Style suggestions500msSmall LLMMedium
Rewrite1-2sGPT-3.5Medium
Long-form generation5-10sGPT-4High
Translation1-2sSpecializedMedium

Question 7: Design a Meeting Summarization System

Problem Statement

Design a system that automatically summarizes video meetings and extracts action items.

Solution Architecture

Output Format

markdown
# Meeting Summary: Q4 Planning
**Date**: 2024-01-15 | **Duration**: 45 min | **Participants**: 5

## Key Decisions
1. Launch date moved to March 1st
2. Budget approved for additional engineer

## Action Items
- [ ] @sarah: Finalize design specs by Jan 20
- [ ] @mike: Set up staging environment by Jan 25
- [ ] @team: Review PRD and provide feedback

## Discussion Summary
### Product Roadmap (0:00-15:00)
Discussed Q1 priorities, agreed to focus on mobile first...

### Resource Planning (15:00-30:00)
Reviewed current capacity, identified need for backend help...

Question 8: Design an AI Code Review System

Problem Statement

Design an automated code review system that integrates with GitHub/GitLab.

Solution Architecture

Review Categories

CategoryMethodAuto-block
Security vulnerabilitiesSAST + LLMYes (critical)
Bug patternsStatic analysis + LLMYes (high severity)
Performance issuesPattern matchingNo (warning)
Style violationsLinterNo (suggestion)
Documentation gapsLLM analysisNo (suggestion)

Question 9: Design an Enterprise Search System

Problem Statement

Design an AI-powered search system across an enterprise's documents, emails, chat, and wikis.

Key Components


Question 10: Design a Conversational Shopping Assistant

Problem Statement

Design an AI shopping assistant that helps users find and purchase products through conversation.

Key Features


Question 11: Design a Document Q&A System

Problem Statement

Design a system where users can upload documents and ask questions about them.

Architecture Highlights

  • Multi-format support: PDF, DOCX, images (OCR), spreadsheets
  • Chunking strategy: Semantic chunking with metadata preservation
  • Per-document index: Isolated vector stores per document
  • Citation: Page/section references in all answers
  • Session context: Remember previous questions in session

Question 12: Design an Automated Email Response System

Problem Statement

Design a system that drafts email responses for customer service teams.

Key Design Points

  • Intent classification: Categorize incoming emails
  • Response generation: Draft contextually appropriate responses
  • Personalization: Match customer history and tone
  • Human review: Queue for approval before sending
  • Learning loop: Learn from human edits

Question 13: Design a Personalized Learning Assistant

Problem Statement

Design an AI tutor that adapts to individual student learning styles and pace.

Architecture


Question 14: Design a Multi-Modal Content Generator

Problem Statement

Design a system that generates blog posts with AI-generated images and videos.

Key Components

  • Text generation: Long-form content with structure
  • Image generation: Contextual images via DALL-E/Midjourney
  • Video generation: Short clips for social via Runway/Pika
  • Layout engine: Combine elements into coherent document
  • Brand consistency: Apply brand guidelines to all outputs

Question 15: Design an AI-Powered Help Center

Problem Statement

Design a self-service help center with AI-powered article suggestions and conversational help.

Features


General Interview Tips

The 6-Step Framework Reminder

StepTimeFocus
1. Clarify5 minRequirements, scale, constraints
2. Architecture10 minHigh-level system diagram
3. Components15 minDeep dive on key components
4. Optimization5 minLatency, cost, quality trade-offs
5. Safety5 minSecurity, content safety, privacy
6. Operations5 minMonitoring, evaluation, updates

Common Follow-Up Questions

Be Prepared For These

  • "How would you scale this 10x?"
  • "What if latency requirements are halved?"
  • "How do you handle model failures?"
  • "What metrics would you track?"
  • "How would you improve quality over time?"
  • "What are the biggest risks?"

Evaluation Criteria

CriterionWhat Interviewers Look For
Problem decompositionBreaking down ambiguous problems
Architecture skillsClean, scalable system design
GenAI understandingLLM-specific considerations
Trade-off analysisComparing alternatives objectively
Production thinkingMonitoring, safety, reliability
CommunicationClear explanation of decisions

PreviousNext
Content PipelineIndex

Sources