nerdexam
GIAC

GSSP-NET · Question #248

Dilton works as a Software Developer for GREC Research Center (Central). This research center has its subsidiaries in several different cities. Dilton wants to retrieve a Soil Test Report for the…

The correct answer is A. GenericIdentity GenIdentity = new GenericIdentity("Generic", "Custom"); string[] GeoRoles. See the full explanation below for the reasoning.

Question

Dilton works as a Software Developer for GREC Research Center (Central). This research center has its subsidiaries in several different cities. Dilton wants to retrieve a Soil Test Report for the Geological Survey Department. He wants the test report to be available to all the members of the department over the Internet. He creates an XML Web service named SampleReport. SampleReport contains a Web method named SoilTestDetails that requires additional security. Dilton decides to use generic role-based security to secure the SoilTestDetails method from unauthorized users. Dilton writes code to ensure that once a user is authenticated, a user identity named Generic is created. The Generic user identity has a group membership named GeoSurvey to allow the authenticated users access to the SoilTestDetails Web method. Which of the following code segments should Dilton use to accomplish the task?

Options

  • AGenericIdentity GenIdentity = new GenericIdentity("Generic", "Custom"); string[] GeoRoles
  • BIIdentity GeoIdentity = new GenericIdentity("Generic", "Custom"); WindowsIdentity
  • CIIdentity GeoIdentity = new GenericIdentity("Generic", "GeoSurvey"); IPrincipal
  • DSystem.Security.Principal.IIdentity MyGenericIdentity = new GenericIdentity("Generic",

How the community answered

(44 responses)
  • A
    80% (35)
  • B
    2% (1)
  • C
    14% (6)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice