MCSD.NET - 70-320 Exam Question:
Download Questions PDF

Suppose You create an XML Web service named Postal Code. Your project source includes a codebehind
file and a file named PostalCode.asmx. During implementation, you use the Debug class to
record debugging log messages, to verify values, and to report debugging failures. You want to
deploy Postal Code to a production computer. You do not want any of the debugging code to
execute on the production computer. What should you do?
A. Set the projects active configuration to Release and rebuild the DLL.
B. Modify the trace element of the Web.config file by setting the enabled attribute to "false".
C. Modify the compilation element of the Web.config file by setting the debug attribute to "false".
D. Add code to the constructor of the Postal Code class to set the Auto Flash property of the
Debug class to false.
E. Add code to the constructor of the Postal Code class to call the Clear method of the
Debug.Listeners property.

Answer:

A. Set the project's active configuration to Release and rebuild the DLL.

Download MCSD.NET - 70-320 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose You create a serviced component named Session Dispenser. This computer is in the
Company.Utilities assembly and is registered in a COM+ server application. Session Dispenser
has multiple callers. You discover that there are logic problems in the Create New Session
method. You want to debug any calls to this method. What should you do?
A. Open the Session Dispenser solution.
Set a breakpoint on the Create New Session method.
Start the debugger.
B. Attach the debugger to the client process.
Set a breakpoint on the SessionDispenser.CreateNewSession method.
C. Attach the debugger to the Company.Utilites.exe process.
Set a breakpoint on the Create New Session method.
D. Attach the debugger to a Dllhost.exe process.
Set a breakpoint on the Create New Session method.
Suppose You create a .NET Remoting object named Patient info that exposes medical patient information.
Because of the confidential nature of the information, you must ensure that the data remains
secure. You want client applications to connect to Patient info over a secure communication
channel. You want to accomplish this task by writing the minimum amount of code.
What should you do?
A. Create your own host application and use a Tcp Channel and Binary Formatter.
B. Create your own host application and use an Http Channel and a Soap Formatter.
C. Install Patient info in an Internet Information Services (IIS) virtual directory.
Configure Patient info to use a Tcp Channel and a Binary Formatter.
Configure IIS to use SSL.
D. Install Patient info in an Internet Information Services (IIS) virtual directory.
Configure Patient info to use an Http Channel and a Soap Formatter.
Configure IIS to use SSL.