nerdexam
Microsoft

70-519 · Question #61

You are designing an exception-handling strategy for an ASP.NET Web Forms application. The Web application will use Windows authentication. The Web application must meet the following requirements…

The correct answer is B. On the assembly, add a SecureRules attribute with the security rule set configured to level 2. See the full explanation below for the reasoning.

Question

You are designing an exception-handling strategy for an ASP.NET Web Forms application. The Web application will use Windows authentication. The Web application must meet the following requirements:

  • Display a user-friendly error message to users.
  • Display a detailed error message to server administrators.

You need to recommend an approach for handling exceptions. What should you recommend?

Options

  • AAdd a HandleError attribute to each controller class.
  • BOn the assembly, add a SecureRules attribute with the security rule set configured to level 2.
  • CIn the Application_Error event handler, wrap the exception in an ExternalException exception.
  • DIn the customErrors element of the Web.config file, set the mode attribute to remoteOnly.

How the community answered

(64 responses)
  • A
    3% (2)
  • B
    81% (52)
  • C
    5% (3)
  • D
    11% (7)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice