exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 13 question 5 discussion

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

HOTSPOT -
You need to correct the Azure Logic app error message.
Which configuration values 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:

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
mlantonis
Highly Voted 3 years, 5 months ago
Logic app: You test the Logic app in a development environment. The following error message displays: '400 Bad Request'. Troubleshooting of the error shows an HttpTrigger action to call the RequestUserApproval function. Box 1: anonymous To use your logic app's managed identity in your function, you must set your function's authentication level to anonymous. Otherwise, your logic app throws a "BadRequest" error. Box 2: system-assigned Your logic app or individual connections can use either the system-assigned identity or a single user-assigned identity, which you can share across a group of logic apps, but not both. On your logic app menu, under Settings, select Identity > System assigned
upvoted 51 times
bp_a_user
10 months, 1 week ago
Why System assigned?
upvoted 2 times
...
mlantonis
3 years, 5 months ago
Reference: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions#set-up-anonymous-authentication-in-your-function
upvoted 8 times
...
Hike1216
10 months, 2 weeks ago
Explanation for using anonymous https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions?tabs=consumption#set-up-your-function-for-anonymous-authentication-consumption-workflows-only
upvoted 2 times
...
...
rqb11
Highly Voted 3 years, 6 months ago
According to this article Function authz should be set to anonymous as we're using AAD auth. https://adatum.no/azure/azure-ad-authentication-in-azure-functions
upvoted 35 times
micro9000
1 year, 11 months ago
agree on this based on the docs, For your function to use your logic app's managed identity, you must set your function's authentication level to anonymous. Otherwise, your logic app workflow throws a BadRequest error.
upvoted 2 times
...
RaviNikkam
2 years, 5 months ago
Look at line RA05 which clearly mentions, authorization level as function.
upvoted 2 times
gmishra88
2 years ago
That's why it is giving the error and that need to be solved
upvoted 3 times
...
xRiot007
2 years, 4 months ago
That is for the function in the function app, not the logic app.
upvoted 2 times
...
...
Imass
3 years, 6 months ago
Agree, see also this: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions#enable-authentication-for-functions
upvoted 4 times
...
anastakasim
3 years, 6 months ago
Not function?
upvoted 1 times
ZodiaC
3 years, 3 months ago
NOPE READ LINK !
upvoted 5 times
...
...
...
robertical
Most Recent 5 months, 3 weeks ago
Logic apps are not in scope anymore for the test. This may change this question.
upvoted 3 times
...
gmishra88
2 years ago
For some weird reason Microsoft decided that logic apps cannot use the user-assigned identity when it is given to multiple. Totally random restriction that shows the inter-departmental issues in this organization. And they think that fault-line is a good question to ask.
upvoted 7 times
...
ChrisEvans
2 years, 6 months ago
We are fixing the logic app, not the function app. If you look at the function app code, you can see it's using function level authentication, so it can't be anonymous. I think it's function + system assigned.
upvoted 1 times
gmishra88
2 years, 1 month ago
I do agree the question is not clear. But if you think deep enough you will see that it is the function app that you need to change for the authorization (Box 1) and in the logic app to use the user-assigned-identity
upvoted 2 times
...
...
SivajiTheBoss
2 years, 7 months ago
Correct Answer: Anonymous System assigned identity
upvoted 4 times
...
chingdm
2 years, 8 months ago
Can use combination of auth level=Function + managed identity=user-assigned, this works if you set the Function, Logic App and API Management to use this same user-assigned identity. otherwise, the simpler approach but less secure is to have auth level=Anonymous set to Function and the Logic App to have the system-assigned managed identity. https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
upvoted 1 times
...
edengoforit
2 years, 9 months ago
Why system-assigned?
upvoted 1 times
...
Jonas_86
3 years, 1 month ago
Anonymous ans system-assigned check : https://docs.microsoft.com/fr-fr/azure/spring-cloud/tutorial-managed-identities-functions
upvoted 1 times
...
ning
3 years, 2 months ago
Either system or user identity works in this scenario ... Without further requirements, it is hard to say ...
upvoted 1 times
ning
3 years, 2 months ago
Only thing I can see "All user accounts and processes must receive only those privileges which are essential to perform their intended function." maybe system identity then ...
upvoted 4 times
...
...
jkes80
3 years, 3 months ago
I think I would answer Box1: anonymous Box2: user-assigned -> there are 2 Logic Apps in the picture, so it makes sense to me to create a user-assigned identity that is being used for both Logic Apps?
upvoted 2 times
ZodiaC
3 years, 3 months ago
Nope, thats make it difficult... So stay with system!
upvoted 1 times
...
...
anandhprakash
3 years, 5 months ago
Anonymous System assigned identity will be correct answer? I am guessing
upvoted 5 times
...
SnakePlissken
3 years, 5 months ago
Logic App is removed from the study guide on March 26, 2021. https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4oZ7B
upvoted 3 times
gmishra88
2 years, 1 month ago
Logic app is removed, but function app is not and this question is about the function app. So, unfortunately this question is still in scope
upvoted 1 times
...
if54uran
3 years, 4 months ago
It seems to still in ther o_O --> page 6 lower left side "Develop an App Service Logic App" Am I missing something here?
upvoted 1 times
hstml
3 years, 1 month ago
The left side of the table states the things that are retired from the exam. "Previous Study Guide" :) So SnakePlissken is correct.
upvoted 3 times
...
...
...
oadigun
3 years, 5 months ago
Answer is Anonymous....To use your logic app's managed identity in your function, you must set your function's authentication level to anonymous. Otherwise, your logic app throws a "BadRequest" error. https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions#set-up-anonymous-authentication-in-your-function
upvoted 7 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