nerdexam
GIAC

GSSP-NET · Question #245

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 A. 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 =
  • BGenericIdentity identity =
  • CWindowsIdentity identity =
  • DWindowsIdentity identity =

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    8% (2)
  • C
    4% (1)
  • D
    13% (3)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice