nerdexam
GIAC

GSSP-NET · Question #426

You work as a Software Developer for ABC Inc. You use Visual Studio .NET to develop a Windows application named MyWindowApp. You implement the security classes of the .NET Framework. When users…

The correct answer is D. AppDomian.CurrentDomain.SetPrincipalPolicy(_. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. You use Visual Studio .NET to develop a Windows application named MyWindowApp. You implement the security classes of the .NET Framework. When users interact with the application, the role-based validation should perform frequently. You must ensure that only validated Windows NT or Windows 2000 domain users are permitted to access the application. You add the appropriate Imports statements for the System.Security.Principal namespace and the System.Threading namespace. Which of the following code segments will you use to accomplish this task?

Options

  • ADim identity As WindowsIdentity = _WindowsIdentity.GetAnonymous() Dim myprincipal As
  • BAppDomain.CurrentDomain.SetThreadPrincipal(_
  • CDim identity As WindowsIdentity = WindowsIdentity.GetCurrent() Dim myprincipal As New
  • DAppDomian.CurrentDomain.SetPrincipalPolicy(_

How the community answered

(42 responses)
  • A
    10% (4)
  • B
    5% (2)
  • C
    14% (6)
  • D
    71% (30)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice