Microsoft Azure Developer Associate AZ-204 Practice Question

Your JavaScript single-page application (SPA) signs users in with MSAL.js and obtains an access token for an Azure Function App that you built. Inside the function you must call Microsoft Graph on behalf of the signed-in user. Which authentication mechanism should you implement in the Azure Function to acquire a user-delegated token for Microsoft Graph?

  • Enable the function's managed identity and request the Mail.Read application permission.

  • Configure implicit grant for Microsoft Graph in the SPA and pass that token to the function without further processing.

  • Implement the OAuth 2.0 On-Behalf-Of flow using the function's application registration as a confidential client.

  • Use the client credentials grant by exchanging the SPA's access token for a Graph app-only token.

Microsoft Azure Developer Associate AZ-204
Implement Azure security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot