Bird
Raised Fist0
HLDsystem_design~20 mins

Video upload and processing pipeline in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Video Pipeline Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Identify the correct component for video upload handling

In a video upload and processing pipeline, which component is primarily responsible for receiving and temporarily storing the uploaded video before processing?

AVideo ingestion service that accepts and stores raw video files
BLoad balancer distributing incoming upload requests
CVideo transcoding service that converts video formats
DContent delivery network (CDN) caching processed videos
Attempts:
2 left
💡 Hint

Think about the first step after a user uploads a video file.

scaling
intermediate
2:00remaining
Scaling the video transcoding service

Your video processing pipeline needs to handle a sudden spike of 10,000 video uploads per hour. Which approach best helps scale the transcoding service to handle this load efficiently?

AImplement a distributed queue and multiple transcoding worker instances that scale horizontally
BUse a single powerful server with high CPU and memory for transcoding
CStore all videos in a database and transcode them sequentially
DTranscode videos directly on the user's device before upload
Attempts:
2 left
💡 Hint

Consider how to handle many videos at the same time without delay.

tradeoff
advanced
2:00remaining
Choosing between synchronous and asynchronous processing

What is the main tradeoff when deciding to process video uploads synchronously (immediate processing) versus asynchronously (delayed processing via queue)?

ASynchronous processing is cheaper; asynchronous requires expensive hardware
BSynchronous processing always produces higher video quality; asynchronous reduces quality
CSynchronous processing reduces latency but limits scalability; asynchronous improves scalability but adds delay
DSynchronous processing requires no storage; asynchronous requires permanent storage
Attempts:
2 left
💡 Hint

Think about user wait times and system load.

🧠 Conceptual
advanced
2:00remaining
Understanding video chunking in upload pipelines

Why is chunked video upload commonly used in large video upload pipelines?

AIt converts video format on the client side before upload
BIt allows resuming uploads after network interruptions without restarting from the beginning
CIt encrypts each chunk separately for security
DIt compresses the video automatically during upload
Attempts:
2 left
💡 Hint

Consider what happens if the internet connection drops during a large upload.

estimation
expert
3:00remaining
Estimating storage needs for video processing pipeline

Your system expects 5,000 video uploads daily. Each raw video averages 500 MB. After transcoding, each video produces 3 different quality versions averaging 100 MB each. Videos are stored for 30 days before deletion. What is the approximate total storage needed for 30 days?

AApproximately 1.35 petabytes
BApproximately 225 terabytes
CApproximately 45 terabytes
DApproximately 675 terabytes
Attempts:
2 left
💡 Hint

Calculate raw + processed storage per day, then multiply by 30 days.