What should you do?

You create a Windows Communication Foundation (WCF) application by using Microsoft Visual Studio 2008 and the .NET Framework 3.5.
You plan to implement an instrumentation strategy for the application.
You add the following code fragment in the configuration file of the application.
<system.diagnostics>
<sources>
<source name=”System.ServiceModel.MessageLogging”>
<listeners>
<add name=”messages” type=”System.Diagnostics.XmlWriterTraceListener” initializeData=”c:\logs\messages.svclog” />
</listeners>
</source>
</sources>
</system.diagnostics>

You need to ensure that the instrumentation strategy meets the following requirements:
– Incoming and outgoing messages are logged completely.
– Secure messages must be logged decrypted.
What should you do? (Each correct answer presents part of the solution. Choose two.)

You create a Windows Communication Foundation (WCF) application by using Microsoft Visual Studio 2008 and the .NET Framework 3.5.
You plan to implement an instrumentation strategy for the application.
You add the following code fragment in the configuration file of the application.
<system.diagnostics>
<sources>
<source name=”System.ServiceModel.MessageLogging”>
<listeners>
<add name=”messages” type=”System.Diagnostics.XmlWriterTraceListener” initializeData=”c:\logs\messages.svclog” />
</listeners>
</source>
</sources>
</system.diagnostics>

You need to ensure that the instrumentation strategy meets the following requirements:
– Incoming and outgoing messages are logged completely.
– Secure messages must be logged decrypted.
What should you do? (Each correct answer presents part of the solution. Choose two.)

A.
Add the switchValue=”Verbose” attribute to the source element.

B.
Configure WCF message logging by using the logEntireMessage=”true” attribute.

C.
Configure WCF message logging by using the logMessagesAtServiceLevel=”true” attribute.

D.
Configure WCF message logging by using the logMalformedMessages=”false” attribute.

E.
Configure WCF message logging by using the logMessagesAtTransportLevel=”true” attribute.



Leave a Reply 0

Your email address will not be published. Required fields are marked *