exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 24 discussion

Actual exam question from Microsoft's AZ-204
Question #: 24
Topic #: 5
[All AZ-204 Questions]

HOTSPOT -
You are developing an Azure App Service hosted ASP.NET Core web app to deliver video-on-demand streaming media. You enable an Azure Content Delivery
Network (CDN) Standard for the web endpoint. Customer videos are downloaded from the web app by using the following example URL: http://www.contoso.com/ content.mp4?quality=1.
All media content must expire from the cache after one hour. Customer videos with varying quality must be delivered to the closest regional point of presence
(POP) node.
You need to configure Azure CDN caching rules.
Which options should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Override -
Override: Ignore origin-provided cache duration; use the provided cache duration instead. This will not override cache-control: no-cache.
Set if missing: Honor origin-provided cache-directive headers, if they exist; otherwise, use the provided cache duration.
Incorrect:
Bypass cache: Do not cache and ignore origin-provided cache-directive headers.

Box 2: 1 hour -
All media content must expire from the cache after one hour.

Box 3: Cache every unique URL -
Cache every unique URL: In this mode, each request with a unique URL, including the query string, is treated as a unique asset with its own cache. For example, the response from the origin server for a request for example.ashx?q=test1 is cached at the POP node and returned for subsequent caches with the same query string. A request for example.ashx?q=test2 is cached as a separate asset with its own time-to-live setting.
Incorrect Answers:
Bypass caching for query strings: In this mode, requests with query strings are not cached at the CDN POP node. The POP node retrieves the asset directly from the origin server and passes it to the requestor with each request.
Ignore query strings: Default mode. In this mode, the CDN point-of-presence (POP) node passes the query strings from the requestor to the origin server on the first request and caches the asset. All subsequent requests for the asset that are served from the POP ignore the query strings until the cached asset expires.
Reference:
https://docs.microsoft.com/en-us/azure/cdn/cdn-query-string

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RaviKS
Highly Voted 3 years, 3 months ago
Given Answers are correct
upvoted 75 times
...
mlantonis
Highly Voted 2 years, 11 months ago
Box 1: Override Override: Ignore origin-provided cache duration; use the provided cache duration instead. This will not override cache-control: no-cache. Set if missing: Honor origin-provided cache-directive headers, if they exist; otherwise, use the provided cache duration. Bypass cache: Do not cache and ignore origin-provided cache-directive headers. Box 2: 1 hour All media content must expire from the cache after one hour.
upvoted 31 times
mlantonis
2 years, 11 months ago
Box 3: Cache every unique URL Cache every unique URL: In this mode, each request with a unique URL, including the query string, is treated as a unique asset with its own cache. For example, the response from the origin server for a request for example.ashx?q=test1 is cached at the POP node and returned for subsequent caches with the same query string. A request for example.ashx?q=test2 is cached as a separate asset with its own time-to-live setting. Bypass caching for query strings: In this mode, requests with query strings are not cached at the CDN POP node. The POP node retrieves the asset directly from the origin server and passes it to the requestor with each request. Ignore query strings: Default mode. In this mode, the CDN point-of-presence (POP) node passes the query strings from the requestor to the origin server on the first request and caches the asset. All subsequent requests for the asset that are served from the POP ignore the query strings until the cached asset expires.
upvoted 20 times
...
mlantonis
2 years, 11 months ago
Reference: https://docs.microsoft.com/en-us/azure/cdn/cdn-query-string https://docs.microsoft.com/en-us/azure/cdn/cdn-caching-rules
upvoted 9 times
...
...
AndySmith
Most Recent 5 months, 3 weeks ago
On exam 3-Nov-2023. Went with proposed answer - 932/1000.
upvoted 3 times
Ciupaz
5 months, 1 week ago
How do you remember all 375 questions?
upvoted 4 times
...
...
jaf19f
8 months, 2 weeks ago
I got this question (12-Aug-2023) and I chose the given answer - 932 passed
upvoted 3 times
...
rolling_potato_
1 year, 3 months ago
Got it in my exam today (3rd of Jan)
upvoted 2 times
adilkhan
1 year, 3 months ago
are these questions enough to pass the exam?
upvoted 1 times
...
...
petitbilly
2 years, 1 month ago
Got it in exam 03/22
upvoted 3 times
AzureDJ
2 years, 1 month ago
Hope your exam went well. This answer looks right. Did you choose it?
upvoted 1 times
...
...
HimanshuNankani
2 years, 6 months ago
1. Override - because we are explicitly defining the duration to be 1 hour . We DO NEED Cache ( hence it cannot be bypass cache) We need EXACT 1 HOUR ( so can't use Set If Missing which could change the specific value) 2. 1 Hour as required 3. We do need to 'Cache every unique url' because we need to provide cache for different qualities that is specified in the query parameter.
upvoted 11 times
...
MK22
2 years, 8 months ago
Provided answer is correct
upvoted 3 times
...
glam
2 years, 11 months ago
correct.
upvoted 2 times
...
rakelcoelho
3 years, 1 month ago
Didn't understand. On the first box it can be «override» or «set if missing»?
upvoted 4 times
titombo
3 years ago
Me too, but according MS page the concepts are: Override: Ignore origin-provided cache duration; use the provided cache duration instead. This will not override cache-control: no-cache. Set if missing: Honor origin-provided cache-directive headers, if they exist; otherwise, use the provided cache duration. What I don't understand is: origin-provided cache duration: is the cache provided in Azure, right? So in other words it would something like: Override cache means that it will always use the cache provided in Azure. Set if missing, this means it can use the client cache request in the request header property. Am I wrong?
upvoted 3 times
Cricketer
3 years ago
Not really, origin means your backend servers
upvoted 1 times
...
...
...
profesorklaus
3 years, 3 months ago
What hasn't been mentioned here is when you try to do on azure portal you should use cdn from Akamai or Verizon but not from Microsoft. Microsoft has default caching rules which can not be changed using portal
upvoted 1 times
...
yerisof
3 years, 4 months ago
why is this not ignore query string
upvoted 1 times
TakumaK
2 years, 11 months ago
As the item in the question. the query has the quality field. this is intended to maintain the cache based on the quality.
upvoted 2 times
...
fredrodlima
3 years, 4 months ago
I guess is because each video with different qualities should be cached for upcoming requests to it from users
upvoted 19 times
Tealon
3 years, 4 months ago
That is correct.
upvoted 3 times
...
...
...
Nyaku
3 years, 5 months ago
For more reference to the answer .. https://docs.microsoft.com/en-us/azure/cdn/cdn-caching-rules
upvoted 11 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago