ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 70 - AZ-204 discussion

Report
Export

You need to access data from the user claim object in the e-commerce web app.

What should you do first?

A.
Write custom code to make a Microsoft Graph API call from the e-commerce web app.
Answers
A.
Write custom code to make a Microsoft Graph API call from the e-commerce web app.
B.
Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.
Answers
B.
Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.
C.
Update the e-commerce web app to read the HTTP request header values.
Answers
C.
Update the e-commerce web app to read the HTTP request header values.
D.
Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.
Answers
D.
Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.
Suggested answer: C

Explanation:

Methods to Get User Identity and Claims in a .NET Azure Functions App include:

ClaimsPrincipal from the Request Context

The ClaimsPrincipal object is also available as part of the request context and can be extracted from the HttpRequest.HttpContext.

User Claims from the Request Headers.

App Service passes user claims to the app by using special request headers.

Reference:

https://levelup.gitconnected.com/four-alternative-methods-to-get-user-identity-and-claims-in-a-net-azure-functions-app-df98c40424bb

asked 02/10/2024
Dmitrii Nikolaevich
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first