Pass the GIAC GIAC Certification GSSP-.NET Questions and answers with CertsForce

Viewing page 12 out of 14 pages
Viewing questions 111-120 out of questions
Questions # 111:

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 the .NET Framework 3.5. The application uses Session objects. You are changing the application to run on a Web farm. You want to make sure that the application can access the Session objects from all the servers in the Web farm. You also make sure that when any server in the Web farm restarts or stops responding, the Session objects are not lost. What will you do?

Options:

A.

Use InProc Session Management mode to store session data in the ASP.NET worker process


B.

Use StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm


C.

Use SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm


D.

Use SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database


Expert Solution
Questions # 112:

You work as a Software Developer for ABC Inc. You use C# .NET to develop a windows application. The application will implement a role-based authorization scheme that is based on a Microsoft SQL Server database of user names. Users will enter their names in a text box named UserName. You must ensure that users are assigned the supervisor role and the PG role by default. Which of the following code segments will you use to accomplish this task?

Options:

A.

GenericIdentity identity =

new GenericIdentity(UserName.Text);

string[] RoleArray = {"Supervisor", "PG"};

WindowsPrincipal principal = new WindowsPrincipal(identity);


B.

WindowsIdentity identity =

new WindowsIdentity.GetAnonymous();

string[] RoleArray = {"Supervisor", "PG"};

WindowsPrincipal principal = new GenericPrincipal(identity, RoleArray);


C.

GenericIdentity identity =

new GenericIdentity(UserName.Text);

string[] RoleArray = {"Supervisor", "PG"};

GenericPrincipal principal = new GenericPrincipal(identity, RoleArray);


D.

WindowsIdentity identity =

new WindowsIdentity.GetCurrent();

string[] RoleArray ={"Supervisor", "PG"};

GenericPrincipal principal = new GenericPrincipal(identity, RoleArray);


Expert Solution
Questions # 113:

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You are developing an application using .NET Framework 2.0. You are required to use a datatype that will store only the numbers. The numbers should be in positive form and should not be larger than 65,535. Which of the following datatypes will you use to accomplish the task?

Each correct answer represents a complete solution. Choose two.

Options:

A.

System.UInt16


B.

ushort


C.

System.Int16


D.

int


E.

short


Expert Solution
Questions # 114:

You work as a Software Developer for ABC Inc. You create a Console application named

ConsoleApplication4. You use the System.Security.Cryptography namespace. You want to use the key lengths of 384 bits to 16384 bits. You use RSACryptoServiceProvider class to encrypt and decrypt data. Which of the following code segments will you use to accomplish this task?

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

Options:

A.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes("Encrypt this line for testing");

byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

encryptData = RSA.Encrypt(DataToEncrypt, true);

Console.WriteLine("Encrypted : {0}", ByteConverter.GetString(encryptData));

decryptData = RSA.Decrypt(encrypt


B.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes("Encrypt this line for testing");

byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

encryptData = RSA.Encrypt(DataToEncrypt, false);

Console.WriteLine("Encrypted : {0}", ByteConverter.GetString(encryptData));

decryptData = RSA.Decrypt(encryp


C.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes("Encrypt this line for testing");

byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

encryptData = RSA.Encrypt(DataToEncrypt, false);

Console.WriteLine("Encrypted : {0}", ByteConverter.GetString(encryptData));

decryptData = RSA.Decrypt(encryp


D.

UnicodeEncoding ByteConverter = new UnicodeEncoding();

byte[] DataToEncrypt = ByteConverter.GetBytes("Encrypt this line for testing");

byte[] encryptData;

byte[] decryptData;

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

encryptData = RSA.Encrypt(DataToEncrypt, true);

Console.WriteLine("Encrypted : {0}", ByteConverter.GetString(encryptData));

decryptData = RSA.Decrypt(encrypt


Expert Solution
Questions # 115:

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 the .NET Framework 3.5. 91. The application uses ASP.NET AJAX, and you need to deploy it in a Web farm environment. You are required to configure SessionState for the application. Which of the following code segments will you use to accomplish this task?

Options:

A.


B.


C.


D.


Expert Solution
Questions # 116:

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 the Web site by implementing Secure Sockets Layer (SSL). Which of the following types of encryption does SSL use?

Each correct answer represents a complete solution. Choose two.

Options:

A.

IPSec


B.

Asymmetric


C.

Symmetric


D.

Secret


Expert Solution
Questions # 117:

You work as a Software Developer for ABC Inc. You develop a .NET application form for

registered users. You want to ensure that the form is able to validate data and provide feedback to a user whenever an invalid data is entered by him. According to you, which of the following user feedback mechanisms will be most appropriate?

Options:

A.

ErrorProvider component


B.

Tool tip


C.

Status bar


D.

Color scheme


Expert Solution
Questions # 118:

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 the .NET Framework 3.5. The application is used to map HTTP requests to HTTP handlers based on a file name extension. You need to ensure that each HTTP handler processes individual HTTP URLs or groups of URL extensions in the application. Which of the following built-in HTTP handlers will you use to accomplish this task?

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

Options:

A.

Web service handler (*.asmx)


B.

Generic handler (*.ashx)


C.

Generic Web handler (*.ashx)


D.

ASP.NET page handler (*.aspx)


E.

Trace handler (trace.axd)


Expert Solution
Questions # 119:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are creating a .NET remoting application using .NET Framework 2.0. The object of the application will be shared by multiple applications. You want to use simple, modular, extensible, and XML-based protocol to exchange messages between remoting applications. What will you do to accomplish the task?

Options:

A.

Use the SOAP protocol.


B.

Use the SoapFormatter class.


C.

Use the BinaryFormatter class.


D.

Use client activated objects.


Expert Solution
Questions # 120:

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You create a Windows service application that will be used by Visual Studio .NET applications. You want to ensure that an access to the Windows service is restricted. Therefore, you decide to use the ServiceInstaller class. You want to specify the security context of the Windows service application. Whic

Options:

A.

Password property


B.

UserName property


C.

Context property


D.

Account property


Expert Solution
Viewing page 12 out of 14 pages
Viewing questions 111-120 out of questions