Bird
Raised Fist0
HLDsystem_design~20 mins

Media sharing in messages in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Media Sharing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Design components for media sharing in messaging

Which component is most essential to handle media file uploads in a scalable messaging system?

AA media storage service that stores files and provides URLs
BA message queue to deliver text messages only
CA notification service that sends alerts without storing media
DA user authentication module without media handling
Attempts:
2 left
💡 Hint

Think about where the media files themselves are kept and accessed.

scaling
intermediate
2:00remaining
Scaling media delivery in messaging apps

What is the best approach to efficiently deliver large media files to many users in a messaging app?

ASend media files directly from the sender's device to each recipient
BStore media files only on the messaging server without caching
CUse a Content Delivery Network (CDN) to cache and serve media files globally
DCompress media files on the client side and send as text messages
Attempts:
2 left
💡 Hint

Consider how to reduce latency and server load when many users access the same media.

tradeoff
advanced
2:00remaining
Tradeoffs in media storage formats

Which storage format tradeoff is most important when designing media sharing for messages?

AChoosing between SQL and NoSQL for user profile data
BChoosing between storing media as blobs in a database or as files in object storage
CChoosing between synchronous and asynchronous message delivery
DChoosing between storing user passwords as plain text or hashed
Attempts:
2 left
💡 Hint

Focus on how media files are stored and accessed efficiently.

🧠 Conceptual
advanced
2:00remaining
Handling media metadata in messaging systems

What is the primary reason to store metadata (like file type, size, thumbnail) separately from media files?

ATo allow users to edit media files directly in the database
BTo reduce the total storage space used by media files
CTo encrypt media files separately from metadata
DTo enable quick access and filtering without loading large media files
Attempts:
2 left
💡 Hint

Think about how apps show previews or lists of media without downloading full files.

estimation
expert
3:00remaining
Estimating storage needs for media sharing

A messaging app expects 1 million users sharing an average of 5 media files per day. Each file averages 3 MB. What is the approximate monthly storage requirement in terabytes (TB)?

A450 TB
B15 TB
C900 TB
D150 TB
Attempts:
2 left
💡 Hint

Calculate total daily data, then multiply by 30 days, convert MB to TB (1 TB = 1,000,000 MB).