nerdexam
GIAC

GSSP-NET · Question #204

You work as a Software Developer for ABC Inc. You use C# .NET to develop a windows application. The application will implement a role-based authorization scheme that is based on a Microsoft SQL…

The correct answer is C. GenericIdentity identity =. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. You use C# .NET to develop a windows application. The application will implement a role-based authorization scheme that is based on a Microsoft SQL Server database of user names. Users will enter their names in a text box named UserName. You must ensure that users are assigned the supervisor role and the PG role by default. Which of the following code segments will you use to accomplish this task?

Options

  • AGenericIdentity identity =
  • BWindowsIdentity identity =
  • CGenericIdentity identity =
  • DWindowsIdentity identity =

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    11% (5)
  • C
    82% (37)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice