Bird
Raised Fist0
HLDsystem_design~20 mins

Content delivery with CDN in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CDN Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Designing a CDN for Global Content Delivery

You need to design a Content Delivery Network (CDN) to serve static images globally with low latency. Which architectural component is essential to reduce the load on the origin server?

ADirect user requests always routed to the origin server
BA single centralized database to store all images
CEdge cache servers located near users to store and serve cached content
DLoad balancer only at the origin server without caching
Attempts:
2 left
💡 Hint

Think about how to reduce repeated requests to the main server by serving content closer to users.

scaling
intermediate
2:00remaining
Handling Traffic Spikes with CDN

Your CDN experiences sudden traffic spikes during a product launch. Which scaling strategy helps maintain performance without overloading origin servers?

AIncrease cache TTL to keep content longer at edge servers
BDisable caching to always fetch fresh content from origin
CReduce the number of edge servers to concentrate traffic
DRoute all traffic through a single data center
Attempts:
2 left
💡 Hint

Consider how caching duration affects origin server load during high traffic.

tradeoff
advanced
2:00remaining
Tradeoff Between Cache Freshness and Latency

In a CDN, what is the main tradeoff when setting a very short cache expiration time (TTL) for dynamic content?

ALower latency but higher origin server load due to frequent cache misses
BHigher latency and lower origin server load
CNo impact on latency or origin server load
DCache never expires, so content is always stale
Attempts:
2 left
💡 Hint

Think about how often the CDN must fetch fresh content from the origin.

🧠 Conceptual
advanced
2:00remaining
Understanding CDN Request Flow

When a user requests a file from a CDN edge server that does not have the file cached, what is the correct sequence of events?

A2,1,3,4
B1,2,3,4
C1,3,2,4
D3,2,1,4
Attempts:
2 left
💡 Hint

Think about the logical order from cache check to serving the user.

estimation
expert
3:00remaining
Estimating CDN Capacity for Video Streaming

You expect 1 million users streaming a 5-minute video simultaneously via CDN. Each video bitrate is 3 Mbps. Estimate the minimum total bandwidth capacity the CDN must support to serve all users without buffering.

AApproximately 1,000 Gbps
BApproximately 500 Gbps
CApproximately 15,000 Gbps
DApproximately 3,000 Gbps
Attempts:
2 left
💡 Hint

Calculate total bandwidth by multiplying users by bitrate, then convert units carefully.