nerdexam
MicrosoftMicrosoft

AZ-204 · Question #40

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

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

Submitted by lars.no· Mar 30, 2026Implement secure cloud solutions - specifically configuring authorization policies and role-based access control in Azure-hosted ASP.NET Core MVC applications (AZ-204: Develop for Azure / Implement Azure Security)

Question

Drag and Drop Question You are developing a .NET Core model-view controller (MVC) application hosted on Azure for a health care system that allows providers access to their information. You develop the following code: You define a role named SysAdmin. You need to ensure that the application meets the following authorization requirements: - Allow the ProviderAdmin and SysAdmin roles access to the Partner controller regardless of whether the user holds an editor claim of partner. - Limit access to the Manage action of the controller to users with an editor claim of partner who are also members of the SysAdmin role. How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

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.

Topics

#ASP.NET Core Authorization#Role-Based Access Control#Policy-Based Authorization#Azure MVC Security
Full AZ-204 PracticeBrowse All AZ-204 Questions