nerdexam
MicrosoftMicrosoft

AZ-204 · Question #533

AZ-204 Question #533: Real Exam Question with Answer & Explanation

Sign in or unlock AZ-204 to reveal the answer and full explanation for question #533. The question stem and answer options stay visible for context.

Submitted by kev92· Mar 30, 2026

Question

You are developing an ASP.NET Core app hosted in Azure App Service. The app requires custom claims to be returned from Microsoft Entra ID for user authorization. The claims must be removed when the app registration is removed. You need to include the custom claims in the user access token. What should you do?

Options

  • ARequire the https://graph.microsoft.com/.default scope during authentication.
  • BConfigure the app to use the OAuth 2.0 authorization code flow.
  • CImplement custom middleware to retrieve role information from Azure AD.
  • DAdd the groups to the groupMembershipClaims attribute in the app manifest.
  • EAdd the roles to the appRoles attribute in the app manifest.

Unlock AZ-204 to see the answer

You've previewed enough free AZ-204 questions. Unlock AZ-204 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full AZ-204 PracticeBrowse All AZ-204 Questions