GSSP-NET · Question #118
Allen works as a Software Developer for ABC Research Center. This research center has its subsidiaries in different cities. Allen wants to retrieve a Soil Test Report for the Geological Survey…
The correct answer is A. Dim GenIdentity As GenericIdentity = New GenericIdentity("Generic", "Custom") Dim. See the full explanation below for the reasoning.
Question
Allen works as a Software Developer for ABC Research Center. This research center has its subsidiaries in different cities. Allen 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. Allen decides to use generic rolebased security to secure the SoilTestDetails method from unauthorized users. Allen 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 Allen use to accomplish the task? GIAC GSSP-.NET Exam
Options
- ADim GenIdentity As GenericIdentity = New GenericIdentity("Generic", "Custom") Dim
- BDim GeoIdentity As IIdentity = New GenericIdentity("Generic", "GeoSurvey") Dim
- CDim GeoIdentity As IIdentity = New GenericIdentity("Generic", "Custom") Dim
- DDim MyGenericIdentity As System.Security.Principal.IIdentity = New
How the community answered
(25 responses)- A72% (18)
- B16% (4)
- C8% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.