[Free] 2017(Sep) EnsurePass Pass4sure GIAC GSSP- Dumps with VCE and PDF 111-120

EnsurePass
2017 Sep GIAC Official New Released GSSP-
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/GSSP-.html

GIAC GIAC Secure Software Programmer – C#.NET

Question No: 111 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a class library using the .NET Framework. The library will be used to open the NSCs of computers. Later, you will set up the class library to the GAC and provide it Full Trust permission. You write down the following code

segments for the socket connections:

SocketPermission permission = new SocketPermission(PermissionState.Unrestricted);

permission.Assert(); A number of the applications that use the class library may not have the necessary permissions to open the network socket connections. Therefore, you are required to withdraw the assertion. Which of the following code segments will you use to accomplish the task?

  1. permission.PermitOnly();

  2. CodeAccessPermission.RevertDeny();

  3. permission.Deny();

  4. CodeAccessPermission.RevertAssert();

  5. permission.Demand();

Answer: D

Question No: 112 – (Topic 1)

You work as an Application Developer for ABC Inc. You are assigned with developing a Web site that will handle information related to monthly sales of the company. You wish to secure the Web site so that only employees of the Accounts department can view the Web pages. You need to create roles for the employees of this department. The user account information will be stored in a SQL Server database named Database. You decide to do all this by using the Web Site Administration Tool. Which of the following types of security will you use to accomplish the task?

  1. Forms-based authentication

  2. Integrated Microsoft Windows authentication

  3. Basic authentication

  4. Digest authentication

Answer: A

Question No: 113 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application uses serialization to allow users to take an instance of an object and convert it into a format that can be easily transmittable over the network or even

stored in a database. You want to provide the base functionality for the common language runtime serialization formatters. Which of the following classes will you use to accomplish the task?

  1. SoapFormatter

  2. FormatterConverter

  3. Formatter

  4. BinaryFormatter

Answer: C

Question No: 114 – (Topic 1)

Sam works as a Software Developer for GenTech Inc. He creates an ASP.NET page, named Page1, for a college Web site. Page1 is used to enroll new applicants to a certification course offered by the college. In order to get admission to the course, an applicant#39;s age must be between eighteen and twenty-five. The page contains several TextBox controls that are used by applicants to feed their personal details. The data entered by each applicant is then used to check the eligibility of the applicant.

One of the TextBox controls on the page is named txtDateofBirth. Sam wants to verify that the applicants meet the age requirement. He wants to perform validation both on the server-side and on the client-side. In order to validate the age, he adds a CustomValidator control, named CValidator, to the page and sets its ControlToValidate property to txtDateofBirth. Which of the following will Sam use to accomplish the task?

Each correct answer represents a part of the solution. Choose all that apply.

  1. ClientValidationFunction event

  2. ServerValidate property

  3. ServerValidate event

  4. ClientValidationFunction property

Answer: C,D

Question No: 115 – (Topic 1)

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio

.NET as its application development platform. You create an ASP.NET Web application using the .NET Framework. The application is installed in a Network Load Balancing

cluster. You are evaluating a bug statement. When a failure takes place in the Web application, the client occasionally gets an error page as anticipated. At other times, the client gets an exception stack with the error message, which is not anticipated. You are required to find out the configuration setting that causes the unanticipated error.

Which of the following configuration settings causes the unanticipated error?

  1. lt;customErrors mode=quot;Offquot; /gt;

  2. lt;compilation debug=quot;falsequot; /gt;

  3. lt;compilation debug=quot;truequot; /gt;

  4. lt;customErrors mode=quot;Onquot; /gt;

Answer: A

Question No: 116 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create a Web service using the .NET Framework 2.0. You call a method in the Web service. The following exception is thrown in the Web service: client.System.Web.Services.Protocols.SoapException: Server was unable to process request. System.NullReferenceException: Object reference not set to an instance of an object. You find out that it is the following line of code that throws the exception: if (Session [quot;StoredValuequot;] == null)

You must ensure that the method runs without throwing any exception. What will you do to accomplish this task?

  1. Modify the WebMethod attribute in the Web service so that the EnableSession property is set to

    true.

  2. Add the following to the System.Web section of the Web.config file:

    lt;sessionState mode=quot;InProcquot; /gt;

  3. Add the following to the System.Web section of the Web.config file:

    lt;httpModulesgt;

    lt;add name=quot;Sessionquot; type=quot;System.Web.SessionState.SessionStateModulequot; /gt;

    lt;/httpModulesgt;

  4. In the client code for the Web service#39;s proxy object, assign a new instance of the System.Net.CookieContainer object to the CookieContainer property.

  5. In the client code for the Web service#39;s proxy object, assign a new instance of the System.Net.CookieContainer object to the EnableSession property.

Answer: A

Question No: 117 – (Topic 1)

Bill works as a Software Developer for SunInfo Inc. He develops an application named SunApplication using C# .NET. The employees of the company use SunApplication for viewing and editing inventory data. SunApplication receives data from a file named MyFile.xml, which currently does not provide any information. Bill decides to write code to get information from the MyFile.xml file. Which of the following code segments will he use to resolve the issue?

Each correct answer represents a complete solution. Choose all that apply.

  1. FileInfo FI = new FileInfo(@quot;c:\temp\MyFile.xmlquot;); Console.WriteLine(quot;Filename quot; FI.FullName ); Console.WriteLine(quot; Created at quot; FI.CreationTime ); Console.WriteLine(quot; Accessed at quot; FI.LastAccessTime );

  2. FileInfo FI = new FileInfo (quot;@c:\program files\temp\MyFile.xmlquot;); Console.WriteLine (quot;Filename quot; FI.FullName ); Console.WriteLine(quot; Created at quot; FI.CreationTime ); Console.WriteLine(quot; Accessed at quot; FI.LastAccessTime );

  3. FileInfo FI = new FileInfo(quot;MyFile.xmlquot;); Console.WriteLine(quot;Filename quot; FI.FullName ); Console.WriteLine(quot; Created at quot; FI.CreationTime ); Console.WriteLine(quot; Accessed at quot; FI.LastAccessTime );

  4. string str=@quot;c:\windows\MyFile.xmlquot;; FileInfo FI = new FileInfo (str);

FI.Open (FileMode.Open, FileAccess.Read); Console.WriteLine(quot;Filename quot; FI.FullName ); Console.WriteLine(quot; Created at quot; FI.CreationTime ); Console.WriteLine(quot; Accessed at quot; FI.LastAccessTime );

Answer: A,C,D

Question No: 118 – (Topic 1)

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?

  1. Dim GenIdentity As GenericIdentity = New GenericIdentity(quot;Genericquot;, quot;Customquot;) Dim GesRoles() As String= {quot;GeoSurveyquot;}

    Dim GeoPrincipal As GenericPrincipal = New GenericPrincipal(GenIdentity, GeoRoles) Thread.CurrentPrincipal = GeoPrincipal

  2. Dim GeoIdentity As IIdentity = New GenericIdentity(quot;Genericquot;, quot;GeoSurveyquot;)

    Dim GeoPrincipal As IPrincipal = New WindowsPrincipal((WindowsIdentity) GeoIdentity) Thread.CurrentPrincipal = GeoPrincipal

  3. Dim GeoIdentity As IIdentity = New GenericIdentity(quot;Genericquot;, quot;Customquot;) Dim WinGeoIdentity As WindowsIdentity = (WindowsIdentity) GeoIdentity Dim GeoRoles() As String = {quot;GeoSurveyquot;}

    Dim GenGeoPrincipal As GenericPrincipal = New GenericPrincipal(WinGeoIdentity, GeoRoles)

    WindowsIdentity.Impersonate(WinGeoIdentity.Token)

  4. Dim MyGenericIdentity As System.Security.Principal.IIdentity = New GenericIdentity(quot;Genericquot;,

quot;Customquot;)

Dim GeoRoles() As String = {quot;GeoSurveyquot;}

GenericPrincipal GenGeoPrincipal = new GenericPrincipal(MyGenericIdentity, GeoRoles); MyGenericIdentity = WindowsIdentity.GetCurrent();

Answer: A

Question No: 119 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5.

The application rarely experiences errors that cannot be reproduced on a test environment. You are required to ensure that the application meets the following requirements:

l All unanticipated errors are logged.

l Logging is configured with a least amount of alteration to the application code. What will you do?

  1. Override the base class for all forms in the application to add the Try/Catch blocks to all the major functionalities.

  2. Enable the lt;customErrorsgt; element in the Web.config file and set the mode attribute to On .

  3. Enable the lt;customErrorsgt; element in the Web.config file and set the mode attribute to RemoteOnly.

  4. Add an event handler for the Application.Error event to the Global.asax file of the applicatio n.

Answer: D

Question No: 120 – (Topic 1)

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 3.5. The application must be deployed by using the http://www.ABC.com/ URL. The application has several Web forms.

You need to implement Really Simple Syndication (RSS) feeds functionality. The RSS feeds will be used by the http://www.ABC.com/Updates.rss URL. You must ensure that the application displays the RSS-formatted information when accessing the given URL. What will you do to accomplish this?

Each correct answer represents a part of the solution. Choose two.

  1. Create and register a custom HttpHandler class that releases the RSS feeds.

  2. Create a Web form named Updates that releases the RSS feeds.

  3. Create an ASMX Web service component named Updates.

  4. Add the HttpHandler class to the .rss extension.

  5. Create and register a custom HttpModule class.

Answer: A,D

100% Free Download!
Download Free Demo:GSSP- Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass GSSP- Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE