nerdexam
Microsoft

70-511 · Question #191

You are developing a Windows Presentation Foundation (WPF) application. You are implementing the security features for a function that requires File 10. The callers of this function that are higher…

The correct answer is B. <FileIOPermissionAttribute(. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. You are implementing the security features for a function that requires File 10. The callers of this function that are higher in the stack do not have permission to read the C:\temp directory. The function also accesses other resources that require permission. You need to ensure that the function has the proper permissions to read the C:\temp directory, and that all other resources in the function can still be accessed. Which attribute should you include with the function?

Options

  • A<FileIOPeritiissionAttribute (
  • B<FileIOPermissionAttribute(
  • C<FileIOPermissionAttribute(
  • D<FileIOPermissionAttribute(

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    79% (22)
  • C
    11% (3)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice