Bird
Raised Fist0
HLDsystem_design~10 mins

Content delivery with CDN in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the primary purpose of a CDN in content delivery.

HLD
A CDN primarily helps to [1] content closer to users.
Drag options to blanks, or click blank then click option'
Acache
Bdelete
Cencrypt
Dcompress
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'delete' or 'encrypt' which are unrelated to CDN's main function.
2fill in blank
medium

Complete the code to show the step where user requests are directed to the nearest CDN server.

HLD
When a user requests content, DNS [1] directs the request to the closest CDN edge server.
Drag options to blanks, or click blank then click option'
Arouting
Bcaching
Ccompression
Dencryption
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing routing with caching or compression.
3fill in blank
hard

Fix the error in the description of CDN cache invalidation.

HLD
CDN cache invalidation is the process of [1] outdated content from edge servers.
Drag options to blanks, or click blank then click option'
Aduplicating
Bupdating
Cremoving
Dencrypting
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'updating' which is not the exact process of invalidation.
4fill in blank
hard

Fill both blanks to complete the CDN request flow correctly.

HLD
User requests content -> DNS [1] -> CDN edge server [2] content if cached -> origin server if not cached.
Drag options to blanks, or click blank then click option'
Arouting
Bcompresses
Cserves
Dencrypts
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up compression or encryption with serving content.
5fill in blank
hard

Fill all three blanks to complete the CDN cache control logic.

HLD
Cache-Control header: max-age=[1], must-revalidate=[2], proxy-revalidate=[3].
Drag options to blanks, or click blank then click option'
A3600
Btrue
Cfalse
D7200
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing true/false values for revalidation flags.