Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation - 070-503 Exam Practice Test
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service accepts service requests from different partner applications. One of the partner applications occasionally receives faults. You need to identify why the service is generating faults. You must accomplish this goal without interrupting the service. What should you do?
Correct Answer: A
Vote an answer
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You create a class named Customer for the WCF service. The Customer class has properties named Id, Name, and BalanceDue.
You plan to convert the Customer class into a data contract.
You need to ensure that only the Id property and the Name property are passed to the client applications.
Which code segment should you use?
You plan to convert the Customer class into a data contract.
You need to ensure that only the Id property and the Name property are passed to the client applications.
Which code segment should you use?
Correct Answer: B
Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to programmatically add the following endpoint definition to the service. http://localhost:8000/ExamService/service
Which code segment should you use?

You need to programmatically add the following endpoint definition to the service. http://localhost:8000/ExamService/service
Which code segment should you use?

Correct Answer: B
Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You add the following code fragment to the app.config file for the service.

You need to enable personal identifiable information (PII) logging for the second trace source.
What should you do?
You add the following code fragment to the app.config file for the service.

You need to enable personal identifiable information (PII) logging for the second trace source.
What should you do?
Correct Answer: B
Vote an answer
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You create a class named Customer for the WCF service. The Customer class has properties named Id, Name, and BalanceDue.
You plan to convert the Customer class into a data contract.
You need to ensure that only the Id property and the Name property are passed to the client applications.
Which code segment should you use?

You plan to convert the Customer class into a data contract.
You need to ensure that only the Id property and the Name property are passed to the client applications.
Which code segment should you use?

Correct Answer: A
Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET
Framework 3.5.
The service will be hosted on a Web server. You add the following code fragment to the
.svc file.
<% @ServiceHost factory="ExamServicefactory" Service="ExamService" %>
You need to create the instances of the services by using the custom ExamServicefactory class.
Which code segment should you use?

Framework 3.5.
The service will be hosted on a Web server. You add the following code fragment to the
.svc file.
<% @ServiceHost factory="ExamServicefactory" Service="ExamService" %>
You need to create the instances of the services by using the custom ExamServicefactory class.
Which code segment should you use?

Correct Answer: B
Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a Console application.
You need to configure the service by using a configuration file other than the default app.config file.
Which code segment should you use?

You need to configure the service by using a configuration file other than the default app.config file.
Which code segment should you use?

Correct Answer: A
Vote an answer
You are creating a Windows Communication Foundation (WCF) client application by using Microsoft .NET Framework 3.5.
The application uses the XML data format to exchange data with the service.
You plan to change the data format to JavaScript Object Notation (JSON).
You need to ensure that the client application can access the JSON WCF service.
What should you do?

The application uses the XML data format to exchange data with the service.
You plan to change the data format to JavaScript Object Notation (JSON).
You need to ensure that the client application can access the JSON WCF service.
What should you do?

Correct Answer: A
Vote an answer
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service accepts service requests from different partner applications. One of the partner applications occasionally receives faults.
You need to identify why the service is generating faults. You must accomplish this goal without interrupting the service.
What should you do?
You need to identify why the service is generating faults. You must accomplish this goal without interrupting the service.
What should you do?
Correct Answer: A
Vote an answer
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service contains the following code segment.

A console application hosts the WCF service. A Microsoft Windows client application uses the WCF service.
You need to implement the callback operation for the client application. You also need to ensure that the callback operation will not encounter deadlocks during execution.

The WCF service contains the following code segment.

A console application hosts the WCF service. A Microsoft Windows client application uses the WCF service.
You need to implement the callback operation for the client application. You also need to ensure that the callback operation will not encounter deadlocks during execution.

Correct Answer: D
Vote an answer