GIAC GSSP-.NET GIAC Secure Software Programmer – C#.NET Online Training
GIAC GSSP-.NET Online Training
The questions for GSSP-.NET were last updated at Jul 11,2025.
- Exam Code: GSSP-.NET
- Exam Name: GIAC Secure Software Programmer - C#.NET
- Certification Provider: GIAC
- Latest update: Jul 11,2025
You work as a Software Developer for ABC Inc. You develop a multi-threaded application named MyMultThreadApp using Visual Studio .NET. The application logs all warning and informational messages in an event log that keeps track of significant events when the application is running. The event log records information that might be useful for troubleshooting or performance analysis.
Which of the following are the considerations that you must keep in mind when logging events with multithreaded components? Each correct answer represents a complete solution. Choose three.
- A . An exclusive lock should be obtained on the log to avoid race conditions.
- B . Each shared component should be thread-safe when interacting with an event log.
- C . The System.Threading namespace should be used to record the identity of each thread for logging messages.
- D . The Debug and Trace classes should be used to log events.
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application using the .NET Framework.
You write the following code snippet to call a method from the Win32 API by using PInvoke:
int rst = MessageBox(hWd, Mytext, Mycaption, Mytype);
You are required define a method prototype.
Which of the following code segments will you use to accomplish this task?
- A . [DllImport("user32")] extern int MessageBoxA(int hWd, String Mytext, String Mycaption, uint Mytype);
- B . [DllImport("user32")] extern int Win32API_User32_MessageBox(Int hWd, String Mytext, String Mycaption, uint Mytype);
- C . [DllImport("user32")] extern int MessageBox(int hWd, String Mytext, String Mycaption, uint Mytype);
- D . [DllImport("C:\WINDOWS\system32\user32.dll")] extern int MessageBox(int hWd, String Mytext, String Mycaption, uint Mytype);
John works as a Web developer for HiTech Inc. He develops an application named MyApp by using Visual C# .NET. John uses a SQL Server database.
He writes the following code:
OleDbCommand cmd = new OleDbCommand();
cmd.CommandText = "UPDATE Employees SET Rank = ‘Senior’ WHERE Basic > 10000";
cmd.ExecuteNonQuery();
Now he wants to improve the performance of the program code.
Which of the following actions will he perform to accomplish the task? Each correct answer represents a complete solution. Choose all that apply.
- A . Use database indexing.
- B . Use an OleDbDataReader object to execute the program code.
- C . Use a Cache object to execute the program code.
- D . Use a SqlCommand object instead of an OleDbCommand object.
- E . Use a stored procedure instead of the CommandText property.
- F . Use the Prepare method on the OleDbCommand object before executing the program code.
You work as a Software Developer for Webtech Inc. You plan to migrate the existing Active Server Pages (ASP) pages to ASP.NET Web pages in order to implement rich functionalities of a Web browser in your Web pages. Therefore, you want to add controls to Web pages of your existing application named WebApp1.
Which of the following controls will be most suitable to implement?
- A . HTML server controls
- B . Web server controls
- C . Validation controls
- D . HTML controls
Which of the following session and instancing modes will you set if you require a sessionfull binding and want to create a new instance object for each client request?
- A . Set SessionMode to Allowed and IntsanceMode to PerSession.
- B . Set SessionMode to Required and IntsanceMode to Single.
- C . Set SessionMode to Required and IntsanceMode to PerCall.
- D . Set SessionMode to Allowed and IntsanceMode to PerCall.
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?
- A . <customErrors mode="Off" />
- B . <compilation debug="false" />
- C . <compilation debug="true" />
- D . <customErrors mode="On" />
In which of the following objects are session variables stored?
- A . SessionStateStoreData
- B . SessionStateModule
- C . SessionStateItemCollection
- D . SessionStateStoreProviderBase
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.
- A . FileInfo FI = new FileInfo(@"c:tempMyFile.xml");
Console.WriteLine("Filename " + FI.FullName );
Console.WriteLine(" Created at " + FI.CreationTime );
Console.WriteLine(" Accessed at " + FI.LastAccessTime ); - B . FileInfo FI = new FileInfo ("@c:program filestempMyFile.xml");
Console.WriteLine ("Filename " + FI.FullName );
Console.WriteLine(" Created at " + FI.CreationTime );
Console.WriteLine(" Accessed at " + FI.LastAccessTime ); - C . FileInfo FI = new FileInfo("MyFile.xml");
Console.WriteLine("Filename " + FI.FullName );
Console.WriteLine(" Created at " + FI.CreationTime );
Console.WriteLine(" Accessed at " + FI.LastAccessTime ); - D . string str=@"c:windowsMyFile.xml";
FileInfo FI = new FileInfo (str);
FI.Open (FileMode.Open, FileAccess.Read);
Console.WriteLine("Filename " + FI.FullName );
Console.WriteLine(" Created at " + FI.CreationTime );
Console.WriteLine(" Accessed at " + FI.LastAccessTime );
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 have recently finished the development of an application using .NET Framework 2.0. The application can be used only for cryptography. Therefore, you have implemented the application on a computer.
What will you call the computer that implemented cryptography?
- A . Cryptographic toolkit
- B . Cryptosystem
- C . Cryptographer
- D . Cryptanalyst
Tony works as a Software Developer for TechNet Inc. He creates a satellite assembly named
SatAssembly1. He wants to install SatAssembly1 in the global assembly cache. Therefore, he compiles the assembly by using the Al.exe tool and signs SatAssembly1.
Which of the following possible tools will Tony use to sign SatAssembly1? Each correct answer represents a complete solution. Choose two.
- A . Installer tool
- B . File Signing tool
- C . .NET Services Installation tool
- D . Strong Name tool