PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windwos XP Professional client computer named Certkiller -WS554 as your development computer.
You are developing a .NET Framework 2.0 application on Certkiller -WS554.
The application’s assembly is named Certkiller App and is stored in Certkiller App.exe.
You are busy using .NET Framework’s Strong Name tool to generate a pair for Certkiller App.exe shown below:
Sn.exe -k Certkiller AppKey
You are required to use the key pair to build the Certkiller App.exe as a strong named assembly.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
The AssemblyKeyFileAttribute class should be used.

B.
The AssemblyDelaySignAttribute class should be used.

C.
The AssemblyConfigurationAttribute class should be used.

D.
The AssemblyKeyNameAttribute should be used.

Explanation:
The Strong name tool is used to allow you to generate and manage keys for the strong name signing and by using the -k switch the tool generates a new key pair and stores it in the specified file. So using the AssemblyKeyFileAttribute is the correct way to go in the scenario.
Incorrect Answers:
B: This class should not be considered for use as it is designed to specify whether or not delayed signing should be used.
C: The class should not be used in the scenario because the class is used to specify a build configuration for an assembly.
D:
This class should not be used in the scenario because it is used to specify the name of a key container that should be used.

One Comment on “What should you do?


Leave a Reply