nerdexam
Microsoft

70-519 · Question #123

You are designing an ASP.NET MVC 2 Web application. The Web application will include a controller named AdminController. You need to recommend an approach for ensuring that the action methods of the…

The correct answer is A. Add the Authorize attribute to each action method in the AdminController controller. D. Read role information from the ConfigurationManager object. See the full explanation below for the reasoning.

Question

You are designing an ASP.NET MVC 2 Web application. The Web application will include a controller named AdminController. You need to recommend an approach for ensuring that the action methods of the AdminController controller are available only to the local Windows Administrator account. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

Options

  • AAdd the Authorize attribute to each action method in the AdminController controller.
  • BRead role information from the AuthorizationContext object.
  • CIn the Web.config file, add an authorization element for the Web application.
  • DRead role information from the ConfigurationManager object.

How the community answered

(50 responses)
  • A
    76% (38)
  • B
    16% (8)
  • C
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice