Exam Ref AZ-204 Chapter 4 - D306 Azure
Developer Associate (ANSWERED)
What is Dynamic Content? - Correct Answer Content that changes depending on user interaction.
What is static content? - Correct Answer It is the same for all application users. Things such as Images or
PDFs.
What is a CDN? - Correct Answer Content Delivery Network. Group of servers distributed in different
locations across the globe that can deliver web content to users. Users access the closest server to them.
When creating a CDN you have to configure the endpoint. What is required when creating the endpoint?
- Correct Answer The name of the endpoint must be globally unique.
What is the URL structure for the default, non custom, CDN Endpoint? - Correct Answer
https://<your_endpoint's_name>. azureedge.net
CDN Cached content has a TTL. What do you use to change the TTL and what 4 different ways are there. -
Correct Answer You use the Cache Control HTTP Header to manage the TTL settings.
1. Default CDN Config
2. Caching Rules
3. Web.Config files
4. Programmatically
What is the Default TTL for Cached content? - Correct Answer 7 Days
What is the difference between Global Caching rules and Custom Caching rules? - Correct Answer
Global affects all content in the CDN.
, Custom controls the TTL for different paths or files in your CDN.
What is the Web.config File used for? - Correct Answer You use this file to set the expiration time of the
folder it is set in. This uses XML to adjust TTL.
What is the programmatic approach to changing the TTL? - Correct Answer This uses ASP.NET to control
the CDN Caching behavior by setting the HttpResponse.Cache property.
If you dont set a specific TTL value for Azure Cache for Redis in-memory Database, when is the default
TTL? - Correct Answer It doesnt expire unless you set the parameter StringSet() to have a TTL
What are 2 methods to delete keys in the Azure Cache for Redis in-memory DB - Correct Answer
KeyDelete() - Removes a single key.
FlushAllDatabases() - Removes all keys.
What is Azure Front Door Service? - Correct Answer A Azure solution that allows routing traffic
efficiently to the closest location to the user. It also allows you to cache content by providing a CDN.
The Cache config is changed at what level in Front Door? - Correct Answer It is performed at the
Routing Rule Level. Allowing routes for different paths in the URL to different back end pools hosting
your App.
Azure Front Door Cache expiration can be set by using... - Correct Answer HTTP Headers
1. Cache Control: Max Age - expressed in seconds.
2. Cache Control: s-maxage - expressed in seconds, has precedence over max-age and expires directives.
3. Expires - Expressed using HTTP-date timestamp, this has least precedence.
What is Redis Cache? - Correct Answer It is managed by Microsoft. Allows you to work LIKE IN an in-
memory data structure store, database cache or message broker.