GIAC GSSP-NET - GIAC GIAC Secure Software Programmer - C#.NET Exam
Page: 3 / 99
Total 491 questions
Question #11 (Topic: Topic 1)
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET
2008 as its application development platform. You are creating an ASP.NET Web
application using .NET Framework 3.5. The application will be used to share any type of
photos on Internet. All the photos should be accessible in various sizes and formats. You
need to add a download feature that can be easily maintained. You also need to make sure
that only a single version of all photos is stored on a SQL server database. What will you
do?
2008 as its application development platform. You are creating an ASP.NET Web
application using .NET Framework 3.5. The application will be used to share any type of
photos on Internet. All the photos should be accessible in various sizes and formats. You
need to add a download feature that can be easily maintained. You also need to make sure
that only a single version of all photos is stored on a SQL server database. What will you
do?
A. Create an HttpModule class to determine the request for the photo download. Process the photo according to the given format and size, and after that return the processed photo in the response.
B. Create a user control that converts the photo to the required format and size.
C. Create an HttpHandler class to determine the request for the photo download. Process the photo according to the given format and size, and after that return the processed photo in the response.
D. Create an ActiveX control that converts the photo to the required format and size.
Answer: C
Question #12 (Topic: 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 development of
an ASP.NET Web application using the .NET Framework 3.5. You host the application on a
Web farm that consists of three Web servers. You should configure the ASP.NET
application for session state to meet the following requirements:
l Session state data should not be lost if a server fails.
l Session state must be maintained across browser requests by the same user.
You are required to configure the Web.config file to meet these requirements. Which of the
following configurations will you use?
2008 as its application development platform. You have recently finished development of
an ASP.NET Web application using the .NET Framework 3.5. You host the application on a
Web farm that consists of three Web servers. You should configure the ASP.NET
application for session state to meet the following requirements:
l Session state data should not be lost if a server fails.
l Session state must be maintained across browser requests by the same user.
You are required to configure the Web.config file to meet these requirements. Which of the
following configurations will you use?
A. <sessionState mode="StateServer"/>
B. <sessionState mode="InProc"/>
C. <sessionState mode="Custom"/>
D. <sessionState mode="SQLServer"/>
Answer: D
Question #13 (Topic: Topic 1)
You work as a Software Developer for ABC Inc. The company has several branches
worldwide. The company uses Visual Studio .NET 2005 as its application development
platform. You are creating an application using .NET Framework 2.0. The application will
be used by all the branches of the company. You are using the CompareInfo class for
culture-sensitive string comparisons. You write the following code in the application:
String s1 = "C rtify";
String s2 = "c rtify";
String s3 = "c rtify";
You need to compare the s1 string with the s2 string and ensure that the string comparison
must ignore case. Which of the following code segments will you use to accomplish the
task?
worldwide. The company uses Visual Studio .NET 2005 as its application development
platform. You are creating an application using .NET Framework 2.0. The application will
be used by all the branches of the company. You are using the CompareInfo class for
culture-sensitive string comparisons. You write the following code in the application:
String s1 = "C rtify";
String s2 = "c rtify";
String s3 = "c rtify";
You need to compare the s1 string with the s2 string and ensure that the string comparison
must ignore case. Which of the following code segments will you use to accomplish the
task?
A. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.IgnoreCase));
B. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.None));
C. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.Ordinal));
D. CompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo; Console.WriteLine(cmp.Compare(s1, s2, CompareOptions.OrdinalIgnoreCase));
Answer: A
Question #14 (Topic: Topic 1)
Andrew works as a Software Developer for Mansoft Inc. The company's network has a
Web server that hosts the company's Web site. Andrew wants to enhance the security of
(SSL). Which of the following types of
encryption does SSL use?
Each correct answer represents a complete solution. Choose two.
Web server that hosts the company's Web site. Andrew wants to enhance the security of
(SSL). Which of the following types of
encryption does SSL use?
Each correct answer represents a complete solution. Choose two.
A. Symmetric
B. Secret
C. IPSec
D. Asymmetric
Answer: A,D
Question #15 (Topic: Topic 1)
You work as a Software Developer for Mansoft Inc. You create an application and use it to
create code access security policies. Which of the following tools will you use to examine
and modify code access security policies from a batch file?
create code access security policies. Which of the following tools will you use to examine
and modify code access security policies from a batch file?
A. Tlbimp.exe
B. GacUtil.exe
C. Sn.exe
D. Caspol.exe
E. StoreAdm.exe
Answer: D