How should you complete the code?

DRAG DROP
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.
Select and Place:

Microsoft AZ-204: Developing Solutions for Microsoft Azure

Free dumps for AZ-204 in PDF format also you can read online.

High quality AZ-204 PDF and software. VALID exam to help you pass.

microsoft-exams

3 thoughts on “How should you complete the code?

  1. the provided answer is correct.
    comma-separated syntax is as Roles = “HRManager,Finance”, but not as provided option Roles = “HRManager”, “Finance”

  2. You are correct. Role should be comma separated values for the 1st box

    see below.
    If you apply multiple attributes then an accessing user must be a member of all the roles specified; the following sample requires that a user must be a member of both the PowerUser and ControlPanelUser role.

    C#

    Copy
    [Authorize(Roles = “PowerUser”)]
    [Authorize(Roles = “ControlPanelUser”)]
    public class ControlPanelController : Controller
    {
    }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.