Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation (70-503) Free Practice Test

Question 1
You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
The client application consumes the Web Services Enhancements (WSE) 3.0 Web service.
The Web service uses standard WSE 3.0 to transfer binary data to the client application.
The client application uses the following binding configuration.
(Line numbers are included for reference only.)

You need to ensure that the client application receives binary data from the WSE 3.0 Web service.
Which code fragment should you insert at line 03?

Correct Answer: C
Question 2
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The client application and the server application authenticate by using certificates. You need to implement message-level security.
Which configuration settings should you use?

Correct Answer: D
Question 3
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment to define the service. (Line numbers are included for reference only.)

You need to set the ServiceContract attribute for the transaction behavior of the service.
Which code segment should you insert at line 01?

Correct Answer: D
Question 4
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?

Correct Answer: D
Question 5
You are creating a Windows Communication Foundation application by using Microsoft .NET Framework 3.5.
You create a service that provides access to the intranet file server of your company. Users must be able to update and delete files from the server by using the service.
You write the following code segment.

You need to ensure that files can be updated or deleted only by users with the required privileges defined in the server's file system ACLs.
What should you do?

Correct Answer: C
Question 6
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: D
Question 7
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You need to use a custom service host to host the WCF service in Windows Activation Services (WAS).
What should you do?

Correct Answer: A
Question 8
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,D
Question 9
You are creating a distributed application by using Microsoft .NET Framework 3.5.
The application uses the Windows Communication Foundation model.
You need to ensure that the following requirements are met:
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Correct Answer: B,C
Question 10
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: A
Question 11
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service will validate certificates to authorize
client applications. You write the following code segment. Class Store Implements IStore Public Sub RemoveOrder(ByVal ordered As Integer) _
Implements IStore. RemoveOrder End Sub End Class You need to ensure that only
those client applications that meet the following criteria can access the RemoveOrder method: "AdminUser" is the subject in the client certificate.
"1 bf47e90O0acf4c0089cda65e0aadcf1 cedd592" is the thumbprint in the client certificate. What should you do?

Correct Answer: A
Question 12
You are creating a distributed application with Windows Communication Foundation by using Microsoft .NET Framework 3.5.
The distributed application topology includes client applications, routers, and services. Communication between the client applications and the services require authentication, confidentiality, and integrity.
You need to ensure that routers are not able to read the contents of the messages. You must achieve this goal without customizing the binding configuration.
Which binding should you use?

Correct Answer: C
Question 13
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that the callback channel between the service and the client application is available for the service to send a status message.
Which code segment should you use?

Correct Answer: B