0
0
Azurecloud~20 mins

Purging CDN cache in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CDN Cache Purging Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What happens when you purge a CDN cache?
When you purge a CDN cache, what is the immediate effect on the content delivery?
AThe CDN permanently disables caching for the purged content, serving all requests directly from the origin.
BThe CDN compresses the cached content to save space but continues serving it without contacting the origin.
CThe cached content is deleted from all CDN edge servers, forcing fresh content retrieval from the origin on next request.
DThe CDN redirects all requests for the purged content to a backup CDN provider.
Attempts:
2 left
💡 Hint
Think about what 'purging' means in terms of cached data.
Architecture
intermediate
2:00remaining
Designing a system to purge CDN cache efficiently
You need to design a system that triggers CDN cache purges automatically when content updates occur. Which architecture best supports this?
AA webhook from the content management system triggers a serverless function that calls the CDN purge API for updated content paths.
BA scheduled batch job runs daily to purge the entire CDN cache regardless of content changes.
CUsers manually submit purge requests through a web portal after content updates.
DThe CDN is configured to never cache content, so no purge system is needed.
Attempts:
2 left
💡 Hint
Consider automation and minimizing unnecessary purges.
scaling
advanced
2:00remaining
Handling large-scale CDN cache purges
Your application serves millions of users globally and updates content frequently. What is the best approach to scale CDN cache purging without causing performance issues?
ABatch purge requests by grouping updated URLs and rate-limit purge API calls to avoid CDN overload.
BPurge the entire CDN cache every time any content changes to ensure freshness.
CDisable CDN caching during high update periods to avoid purging.
DUse multiple CDN providers and purge only one at a time.
Attempts:
2 left
💡 Hint
Think about balancing freshness and system load.
tradeoff
advanced
2:00remaining
Tradeoffs in purging CDN cache aggressively vs. lazily
What is a key tradeoff when choosing to purge CDN cache aggressively (immediately after every update) versus lazily (periodically)?
AAggressive purging reduces origin load but increases stale content; lazy purging increases origin load but ensures freshness.
BAggressive purging ensures freshest content but increases origin load; lazy purging reduces load but risks serving stale content.
CAggressive purging disables CDN caching permanently; lazy purging disables caching temporarily.
DAggressive purging only works with static content; lazy purging only works with dynamic content.
Attempts:
2 left
💡 Hint
Consider freshness versus system resource usage.
estimation
expert
2:00remaining
Estimating purge request volume for a global CDN
Your website updates 10,000 unique content items daily. Each update requires purging the CDN cache for that item. If your CDN provider limits purge API calls to 1,000 per minute, what is the minimum time in minutes to complete all purges?
A0.1 minutes
B100 minutes
C1 minute
D10 minutes
Attempts:
2 left
💡 Hint
Divide total purge requests by the rate limit per minute.