0
0
Azurecloud~20 mins

CDN caching rules in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure CDN Caching Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
How does CDN caching improve website performance?

Imagine you have a website with visitors all over the world. How does using a CDN caching rule help improve the speed of your website?

ABy storing copies of website content closer to users, reducing load times.
BBy increasing the size of the website files to make them load slower.
CBy forcing all users to access the original server directly every time.
DBy disabling all caching to ensure fresh content always loads.
Attempts:
2 left
💡 Hint

Think about how distance affects how fast data travels on the internet.

Architecture
intermediate
2:00remaining
Which Azure CDN caching rule setup best handles frequently updated images?

You have images on your website that update every hour. Which caching rule setup ensures users see fresh images but still benefits from caching?

ADisable caching for images completely.
BSet cache duration to 24 hours with no revalidation.
CSet cache duration to 1 hour and enable cache revalidation.
DSet cache duration to 1 week to reduce server load.
Attempts:
2 left
💡 Hint

Consider how often the images change and how caching duration affects freshness.

scaling
advanced
2:00remaining
How does Azure CDN caching rules affect scalability during traffic spikes?

Your website experiences sudden traffic spikes. How do CDN caching rules help maintain performance and scalability?

ABy serving cached content from edge locations, reducing origin server load.
BBy sending all requests to the origin server to ensure fresh data.
CBy disabling caching to force real-time data delivery.
DBy limiting the number of users who can access the site simultaneously.
Attempts:
2 left
💡 Hint

Think about how caching reduces work for the main server during high demand.

tradeoff
advanced
2:00remaining
What is a tradeoff when setting very long cache durations in Azure CDN caching rules?

Choosing a very long cache duration can improve performance but may cause what issue?

AThe origin server will receive more requests.
BUsers may see outdated content until cache expires.
CThe CDN will use more bandwidth than usual.
DCache will refresh too frequently, increasing latency.
Attempts:
2 left
💡 Hint

Think about how caching duration affects content freshness.

estimation
expert
3:00remaining
Estimate the cache hit ratio impact when enabling Azure CDN caching for static assets

Your website serves 1 million requests per day. 70% are for static assets like images and scripts. If Azure CDN caching is enabled with proper rules, what is the expected cache hit ratio and how many requests will reach the origin server?

ACache hit ratio ~30%, so about 700,000 requests reach origin.
BCache hit ratio ~50%, so about 500,000 requests reach origin.
CCache hit ratio ~95%, so about 50,000 requests reach origin.
DCache hit ratio ~85%, so about 150,000 requests reach origin.
Attempts:
2 left
💡 Hint

Consider that static assets are highly cacheable and most requests for them will be served by CDN.