Free Microsoft 70-503 Practice Test & Real Exam Questions

  • Exam Code/Number: 70-503
  • Exam Name/Title: TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation
  • Certification Provider: Microsoft
  • Corresponding Certification: MCTS
  • Exam Questions: 270
  • Updated On: Jun 02, 2026
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application exposes a Windows Communication Foundation (WCF) service that will be consumed by an ASP. NET application. The WCF application and the ASP.NET application will be deployed on the same server. You need to ensure that the WCF service meets the following requirements:
The communication between the applications incurs minimum latency. The binding satisfies the ordered delivery constraint that is specified in the service implementation by using the DeliveryRequirements attribute.
Which binding object should you use?
Correct Answer: B Vote an answer
You create a service by using Microsoft .NET Framework 3.5. You use Windows
Communication Foundation to create the service.
You use the WSHttpBinding binding to prevent tampering of the data. Users report that the
data is unreadable.
You need to troubleshoot the problem by logging the incoming messages. Which code fragment should you use?
Correct Answer: B Vote an answer
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You add the following code segment to a configuration file. (Line numbers are included for reference only)
01 <configuration> 02 <system.serviceModel>
04 </system.serviceModel>
05 </configuration
You need to enable the performance counters to monitor the ServiceModelOperation object of the service.
You also need to ensure that the performance counters are disabled for all other services.
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. Client applications that run on different platforms access the WCF service.
These applications transmit confidential data to the WCF service. You write the following binding configuration.
....
<binding name="TransportSecurity" >
<security mode="Transport" />
</binding>
...
You need to configure the service for optimum interoperability and optimum security.
Which code fragment should you use?
Correct Answer: A Vote an answer
You create a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5. The client application communicates with an existing Web service that requires custom HTTP headers. You need to ensure that all messages sent to the service include the headers. Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: B,C Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to insert an additional header in a response message.
What should you do?
Correct Answer: D Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to host the service in a medium trust environment on a Web server.
Which two bindings should you use? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,B Vote an answer
You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
You add the following code segment to a service contract.
[ServiceContract]
interface IDocumentService
{
[OperationContract]
int DeleteDocument(int id);
}
The DeleteDocument method in the service contract takes a long time to execute.
The client application stops responding until the method finishes execution.
You write the following code segment to create an instance of a service proxy in the client application.
(Line numbers are included for reference only.)
01 static void Main() 02 {
03 DocumentServiceClient client= new DocumentServiceClient();
05 }
06 static void ProcessDeleteDocument(IAsyncResult result)
07 {
06 ...
09 }
You need to ensure that the service methods are called asynchronously.
What should you do?
Correct Answer: D 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?
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?
Correct Answer: C Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You have successfully created two interfaces: IMyService and IMyServiceClient.
You need to ensure that the service is able to call methods from the client application by using the IMyServiceClient interface.
Which code segment should you use?
Correct Answer: D Vote an answer