Azure CDN Flashcards
How would you configure the CDN caching rules to ensure assets are cached using the default duration,
but still enable a URL to override the cache duration using a query string?
Set the caching behaviour to “Set if missing”
this will ensure that if the cache duration is not specified it will be cached using the default duration
Unless you’ve set up caching rules in the Azure portal the defaults are:
Seven days for web assets,
One day for large files
One Year for streaming media
How would you configure the CDN caching rules to ensure assets are cached including the query string?
Query string caching behaviour “Cache every unique url”
This can result in a low cache hit ratio
How would you configure the CDN caching rules to prevent caching of a certain item
Specify the caching behaviour as “Bypass cache”
How would you configure the CDN caching rules to prevent users specifying cache durations on the origin?
Set the caching behaviour to “Override”
How would you configure the CDN caching rules to not cache when a query string is present?
Set the Query string caching behaviour “Bypass caching for query strings”
How would you ensure that CDN caching rules still apply when the URL has a query string
Set the Query string caching behaviour “Ignore query strings”
What does this cli command do
az cdn endpoint rule add -g group -n endpoint –profile-name profile –order 0 –rule-name global –action-name CacheExpiration –cache-behavior BypassCache
Sets a global rule to disable caching
What is the cli command to create a cache endpoint
az cdn endpoint create -g group -n endpoint –profile-name profile –origin www.example.com
What is the create flag to force assets to be served over HTTPS
az cdn endpoint create -g group -n endpoint –profile-name profile –origin www.example.com
–
–no-http
https://docs.microsoft.com/en-us/cli/azure/cdn/endpoint?view=azure-cli-latest#az_cdn_endpoint_create
Which of the following is NOT a valid Azure CDN type?
A; Standard Microsoft
B: Standard Akamai
C: Premium Akamai
C: Premium Akamai is not a valid Azure CDN type.
Valid types are Standard Microsoft, Standard Akamai, Standard Verizon, and Premium Verizon
If a CDN does not have a copy of a user-requested file in an edge server at a Point of Presence (POP), what happens next?
A: The edge server checks with other edge servers at the same POP. If the file is still not present, it then requests the file from the origin server, returns the file to the user and caches the file.
B: The POP passes the request to the next closest POP.
C: The POP replies with a File not Found message
A: The edge server checks with other edge servers at the same POP. If the file is still not present, it then requests the file from the origin server, returns the file to the user and caches the file.
If the file is not on any The POP requests the file directly from the origin server. It does not check with the next nearest POP.
Which caching setting results in inefficient caching behavior with queries that use unique query strings?
A: Ignore query strings
B: Bypass caching for query strings
C: Cache every unique URL
C: Cache every unique URL is inefficient for caching queries that use unique query strings.
Given a requirement to expire video every 18 hours from cache, which Caching behaviour should you use?
A: Override
B: Set if missing
C: Bypass Cache
A: Override
Setting override will ignore the duration provided in the Request header, and use the duration configuration settings.
Because you want the cache to stay active for 18 hours, you would have to override the cache setting in the request header.
The set if missing option would use the duration, but would use the header setting if it is provided in the header
The Bypass cache option would ignore the Cache all together
You want to optimize the performance of a support website for players of a large online game. The website lets players:
View their current standings and statistics
Compare statistics with other players
See who is currently live and at what location
Download play tips and help files
Display screen captures players have saved to the website
Data on the website is updated in real time. Screen capture images should be compressed when there are network performance issues. Tips, help files, and images are all 2 MB or less in size.
You create an Azure Content Delivery Network (CDN) Standard from Akamai endpoint.
You need to choose the best Optimized for option for the website.
Which Optimized for option should you choose?
A: General Web Delivery
B: Dynamic site acceleration (DSA)
C: Video-on-demand media streaming
D: General media streaming
You should choose DSA.
This is best suited to scenarios where data is changing, and you would receive no benefit from caching data from the website.
The Optimized for option is set when you configure an Azure CDN profile. The optimization options available vary by CDN product. Supported products are:
Azure CDN Standard from Akamai
Azure CDN Standard from Microsoft
Azure CDN Standard from Verizon
Azure CDN Premium from Verizon
Only Azure CDN Standard from Akamai lets you change the Optimize for value after initial configuration.
You should not choose General media streaming. This is best suited for live streaming and video-on-demand streaming, not the mixed content support needed.
You should not choose General web delivery. This is the most common option but is best suited to static websites or those that include a large amount of static content so optimization can leverage caching.
You should not choose Video-on-demand media streaming. This is specifically optimized when you use an endpoint for video-on-demand streaming.
Azure CDN Standard from Akamai uses the following optimization techniques:
Route optimization TCP optimizations Object prefetch Adaptive image compression Adaptive image compression will compress the screen capture images when there are network performance issues. Object prefetch is also supported by Azure CDN Standard from Akamai.