exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 18 discussion

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

HOTSPOT -
You are building a website that is used to review restaurants. The website will use an Azure CDN to improve performance and add functionality to requests.
You build and deploy a mobile app for Apple iPhones. Whenever a user accesses the website from an iPhone, the user must be redirected to the app store.
You need to implement an Azure CDN rule that ensures that iPhone users are redirected to the app store.
How should you complete the Azure Resource Manager template? 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:

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
Zidimirite
Highly Voted 4 years ago
First box: Mobile https://docs.microsoft.com/en-us/python/api/azure-mgmt-cdn/azure.mgmt.cdn.models.isdevicematchconditionparametersmatchvaluesitem Third box: iPhone. We are not looking for other Apple devices running iOS. It's the iPhone we're looking for.
upvoted 97 times
titombo
4 years ago
You are right, also the HTTP_USER_AGENT can be iPhone, iPad, etc... There isn't iOS. Even because iPhone and iPad I believe both could have iOS running in it.
upvoted 3 times
...
atomicicebreaker
4 years ago
I agree, question is about CDN and answer explanation is all about Azure AD...
upvoted 4 times
...
minaritochuck
3 years, 1 month ago
yes for example: HTTP_USER_AGENT=Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)
upvoted 4 times
...
baroo1
2 years, 2 months ago
First box: Mobile as per documentation provided by this user. Yup! Confirmed. Third box: iPhone. HTTP_USER_AGENT for iPhones is like the one below. iOS does not exist. Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
upvoted 7 times
...
...
kondapaturi
Highly Voted 3 years, 10 months ago
1 DeliveryRuleDeviceConditionParameters - we are first checking for a device condition, hence we need to use the condition of DeliveryRuleDeviceConditionParameters 2.Mobile - The devices can be either Desktop or Mobile. These are the two accepted values. Here since we need to route requests based on mobile devices, we need to choose the value of Mobile. 3.DeliveryRequestHeaderConditionParameters. we need to understand the type of operating system running on the device. We can get this information from the request headers. Hence, we need to use the parameter of DeliveryRequestHeaderConditionParameters. 4.HTTP_USER_AGENT - we can check the HTTP_USER_AGENT property in the request header. In the user agent property of the request header, you will normally get information about the environment where the request is originating from. An example is given below where I am showing the request header from my own machine when I browse to a site. 5.iOS - we need to check the operating system which will be iOS.
upvoted 43 times
Knightie
2 years, 8 months ago
Only this one is correct, the value only takes Desktop/Mobile, last one is iOS, Linux...etc
upvoted 2 times
...
ivan0590
3 years ago
I agree on the first four points, but the fifth point is incorrect. The correct answer is iPhone. Here you can see lots of iOS User Agent examples: https://developers.whatismybrowser.com/useragents/explore/operating_system_name/ios/ "iPhone" appears all the time and "Mac OS X" is used instead of "iOS" Example: Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E238 Safari/601.1
upvoted 9 times
...
...
MiiExamT
Most Recent 1 month, 4 weeks ago
For info: HTTP_USER_AGENT=Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C25 Safari/419.3 Last box should be iphone
upvoted 1 times
...
CarlosTheBoldest
1 year, 4 months ago
I got this question on my exam, 2023Dec, go with what I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck! Important tip, you have access to microsoft learn during the exam!
upvoted 4 times
giuliohome
10 months ago
This quote is both misleading and dishonest: "You have access to Microsoft Learn during the exam." Such messages should be deleted by the admins, but there are many similar ones in the forum.
upvoted 2 times
Ahsanz10
8 months, 1 week ago
but isn't it true, I believe we now have access to Microsoft Learn
upvoted 2 times
...
...
...
kotireddy4120
1 year, 5 months ago
3rd box is iphone
upvoted 1 times
methkill
1 year, 5 months ago
5th - the last one
upvoted 1 times
...
...
Dixavado
1 year, 7 months ago
It was on my exam today (2023-09-26) I used the examtopics answer, but the last one I choose iPhone - score 850
upvoted 1 times
...
Dixavado
1 year, 7 months ago
It was on my exam today (2023-09-26) I used the examtopics answer - score 850
upvoted 1 times
...
nikipediaa
1 year, 7 months ago
Question was on exam 2023-09-26
upvoted 1 times
...
Saluk_DE
2 years, 1 month ago
1. DeliveryRuleDeviceConditionParameters 2. Mobile 3.DeliveryRequestHeaderConditionParameters 4. HTTP_USER_AGENT 5. iPhone Question was on exam 2023-03-30
upvoted 13 times
...
sarmaria
2 years, 1 month ago
Got this on 16/03/23. Chosen DeviceRule, Mobile, Header, HTTP Request, iOS. Got 846. Make sure to prepare for case study. I got city and lights case study. No Kubernetes, Search, Logic Apps questions for me.
upvoted 2 times
...
mabdo
2 years, 2 months ago
was on exam 02/2023
upvoted 1 times
...
mabdo
2 years, 2 months ago
on exam 02/23
upvoted 1 times
...
kociuba
2 years, 4 months ago
got it on my exam 30-12-2022 score: 818
upvoted 1 times
...
vcfvct
2 years, 6 months ago
Got this question on 10/21/2022
upvoted 3 times
CloudixExamTopics
2 years, 5 months ago
Answer ?
upvoted 1 times
...
...
gmishra88
2 years, 6 months ago
Really, I should know this to be a developer? This is so specific, Microsoft
upvoted 10 times
DonH
1 year, 10 months ago
I agree this is insane.. how could they ask us to remember all this specific stuff.. I mean look at this table alone: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.cdn.models?view=azure-dotnet and that's only a single question.. :(
upvoted 1 times
...
...
Eltooth
2 years, 10 months ago
DeviceConditions Mobile HeaderConditions HTTP IOS
upvoted 4 times
...
tosm
2 years, 10 months ago
reference: https://docs.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions the filter rule for device may only accept the value of mobile and desktop. So mobile/iphone is my vote.
upvoted 1 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