AI & Technical question
Design a system to store large videos.
- AI & Technical
- Hard
Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.
Start a mock interview on this question · Mock interview from a job description
What this question tests
Infrastructure design for large binary object storage at scale, separating metadata from blob storage and delivery.
How to approach it
- Clarify requirements: scale of uploads per day, access patterns, write-once-read-many, and durability needs.
- Chunk large video files into smaller segments for parallel upload and download and resumable uploads on failure.
- Use object storage for the video bytes, with a separate metadata database, title, owner, encoding status, pointing to storage locations.
- Address durability: replicate chunks across multiple data centers or availability zones to survive hardware failure.
- Address delivery: use a CDN to cache and serve popular segments close to viewers, reducing origin load and latency.
- Define success as upload success rate, including resumability after network failure, and playback start latency at scale.
What a strong answer includes
- Separates metadata storage from blob storage explicitly, a core, correct systems-design distinction.
- Names chunking plus resumable uploads as a concrete answer to the real-world problem of large-file upload failures.
- Addresses delivery via CDN, not just storage, recognizing 'store' implicitly includes serving it back efficiently.
Common mistakes
- Only discussing storage and ignoring resumable upload handling for large files, a very real failure mode.
- Ignoring delivery and CDN, treating this as a pure storage problem with no serving-side consideration.
Likely follow-up questions
- How would you handle a video still being uploaded when a user tries to watch it?
- How would you estimate the storage cost at scale?
More ai & technical questions
- Design a simple load balancer for Google.com. What data structures would you use?Google · AI & Technical · Hard
- How does TinyURL work?Google · AI & Technical · Easy
- How would you explain cloud computing to your grandmother?Google · AI & Technical · Easy
- What happens when you enter a URL in your browser?Google · AI & Technical · Easy
- You’re part of the Google Search web spam team. How would you detect duplicate websites?Google · AI & Technical · Hard
- Explain the data pipeline for the last AI project you worked on. What were the top challenges in getting data, and how did you resolve them?Google · AI & Technical · Hard
More questions from Google
Learn the skill behind it
Chapters of the AI PM course that teach what this question tests.
- Chapter 1: Foundations: the model and the decisions it forces on you
- Chapter 8: Evals: define good and make the number defensible
- Chapter 6: Agents and agentic architecture