Exam AZ-204 All QuestionsBrowse all questions from this exam
Question 171

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:

    Correct Answer:

    Box 1: iOS -

    Azure AD Conditional Access supports the following device platforms:

    ✑ Android

    ✑ iOS

    ✑ Windows Phone

    ✑ Windows

    macOS

    Box 2: DeliveryRuleIsDeviceConditionParameters

    The DeliveryRuleIsDeviceCondition defines the IsDevice condition for the delivery rule. parameters defines the parameters for the condition.

    Box 3: HTTP_USER_AGENT -

    Incorrect Answers:

    ✑ The Pragma HTTP/1.0 general header is an implementation-specific header that may have various effects along the request-response chain. It is used for backwards compatibility with HTTP/1.0 caches.

    ✑ "X-Powered-By" is a common non-standard HTTP response header (most headers prefixed with an 'X-' are non-standard).

    Box 4: DeliveryRuleRequestHeaderConditionParameters

    DeliveryRuleRequestHeaderCondition defines the RequestHeader condition for the delivery rule. parameters defines the parameters for the condition.

    Box 5: iOS -

    The Require approved client app requirement only supports the iOS and Android for device platform condition.

    Reference:

    https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/concept-conditional-access-conditions https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/concept-conditional-access-grant

Discussion
Zidimirite

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.

titombo

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.

atomicicebreaker

I agree, question is about CDN and answer explanation is all about Azure AD...

minaritochuck

yes for example: HTTP_USER_AGENT=Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)

baroo1

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

kondapaturi

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.

ivan0590

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

Knightie

Only this one is correct, the value only takes Desktop/Mobile, last one is iOS, Linux...etc

Saluk_DE

1. DeliveryRuleDeviceConditionParameters 2. Mobile 3.DeliveryRequestHeaderConditionParameters 4. HTTP_USER_AGENT 5. iPhone Question was on exam 2023-03-30

gmishra88

Really, I should know this to be a developer? This is so specific, Microsoft

Don_H

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.. :(

SivajiTheBoss

Correct Answer: DeliveryRuleIsDeviceConditionParameters Mobile DeliveryRuleRequestHeaderConditionParameters HTTP_USER_AGENT iPhone

michaelfastov

Your link doesn't relate to this question as it describes Azure AD, not CDN. https://docs.microsoft.com/en-us/python/api/azure-mgmt-cdn/azure.mgmt.cdn.models.isdevicematchconditionparametersmatchvaluesitem?view=azure-python

Eltooth

DeviceConditions Mobile HeaderConditions HTTP IOS

CarlosTheBoldest

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!

giuliohome

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.

vcfvct

Got this question on 10/21/2022

CloudixExamTopics

Answer ?

sarmaria

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.

kotireddy4120

3rd box is iphone

methkill

5th - the last one

Dixavado

It was on my exam today (2023-09-26) I used the examtopics answer, but the last one I choose iPhone - score 850

Dixavado

It was on my exam today (2023-09-26) I used the examtopics answer - score 850

nikipediaa

Question was on exam 2023-09-26

mabdo

was on exam 02/2023

mabdo

on exam 02/23

kociuba

got it on my exam 30-12-2022 score: 818

tosm

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.