Mar 2016 updated: Actualtests Microsoft 70-503 simulations 166-180

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-503 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/70-503-dumps.html


70-503 Product Description:
Exam Number/Code: 70-503 vce
Exam name: TS: Microsoft .NET Framework 3.5 - Windows Communication Foundation
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Instant Access to Free VCE Files: Microsoft 70-503 TS: Microsoft .NET Framework 3.5 - Windows Communication Foundation

70-503 examcollection

Question No. 166

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? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 167

You create a client application by using Microsoft .NET Framework 3.5. The client application uses a Windows Communication Foundation (WCF) service. 

The WCF service analyzes incoming message headers to verify whether special processing of the message is required. 

The client application accompanies each call to the methods of the service with the address header. 

You write the following code segment. (Line numbers are included for reference only.) 


You need to ensure that the following requirements are met: 

. The client application makes a second call to the FindPhoneByAddress method. 

. The message header of the second call is presented by a variable named newHeader. Which code segment should you insert at line 11? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 168

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5 

You write the following code segment. 


The implementation of the MyMethod operation must call back the CallbackMethod operation. 

You need to ensure that the service meets the following requirements: 

Which service implementation should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 169

You are creating an endpoint for a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment. 


You need to prevent the custom binding from making a persistent connection to the service endpoint. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 170

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? 

A. NetTcpBinding 

B. WSHttpBinding 

C. NetPeerTcpBinding 

D. NetNamedPipeBinding 

Answer:


Question No. 171

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. 


The service uses a transactional binding. The TransactionFlow property for the binding is set to true. You need to ensure that the MyMethod method meets the following requirements: 

Which code segment should you insert at line 05? 

A. [OperationBehavior(TransactionScopeRequired=true)] 

[TransactionFlow(TransactionFlowOption.Allowed)] 

B. [OperationBehavior(TransactionScopeRequired=true)] 

[TransactionFlow(TransactionFlowOption.Mandatory)] 

C. [OperationBehavior(TransactionScopeRequired=false)] 

[TransactionFlow(TransactionFlowOption.Allowed)] 

D. [OperationBehavior(TransactionScopeRequired=false)] 

[TransactionFlow(TransactionFlowOption.Mandatory)] 

Answer:


Question No. 172

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You want to enable message logging. You add the following code fragment to the service configuration file. 

<system.diagnostics> <sources> <source name="System. ServiceModel. Messagel_ogging"> 

<listeners> odd name="messages" 

type="System. Diagnostics. XmlWriterTraceListener" /> 

</listeners> </source> </sources> </system.diagnostics> 

You receive an exception. You need to successfully enable message logging. What should you do? 

A. Remove the message filter. 

B. Set the switchValue attribute to verbose. 

C. Set the initializeData attribute to the name of a log file. 

D. Set the maximum size of the message to be logged to 256K. 

Answer:


Question No. 173

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service is hosted in a managed application. 

You need to perform the following tasks: 

Publish the service on the following address: net.tcp://localhost:8080/ExamService 

Publish the metadata on the following address: 

http://localhost:8081/ExamService/metadata?wsdl 

Which code fragment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 174

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.) 


When you browse to the base address of the service, you receive the following message: "Metadata publishing for this service is currently disabled." 

You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent. You need to enable metadata publishing. 

What should you do? 

A. Delete lines 15 and 16. 

B. Modify the code segment at line 03 in the following manner. Uri mexAddress=neUri("/service"); 

C. Insert the following code segment at line 11. smb.HttpGetEnabled=true; 

D. Insert the following code segment at line 19. smb.HttpGetEnabled=true; 

Answer:


Question No. 175

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment for the service implementation. (Line numbers are included for reference only.) 

01 Public Sub PutMessage(ByVal msg As Message) 

02 Dim value As String = Nothing 

04 End Sub 

You need to retrieve the content from the received message body and store it in the variable named value. 

Which code segment should you insert at line 03? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 176

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You need to programmatically add the following endpoint 49 http://www.abc.com definition to the service. 

http://localhost:8000/ExamService/service Which code segment should you use? 

A. Dim baseAddress As String = "http: //localhost:8000/ExamService"Dim bindingl As New BasicHttpBindingQUsing host As New ServiceHost(GetType (ExamService)) host.AddServiceEndpoint(GetType(IExam), bindingl, baseAddress)End Using 

B. Dim baseAddress As String = _ "http: //localhost:8000/ExamService/service"Dim bindingl As New BasicHttpBindingQUsing host As New ServiceHost(GetType(ExamService)) host.AddServiceEndpoint(GetType(IExam), bindingl, baseAddress)End Using 

C. Dim baseAddress As String = "http: //localhost:8000/ExamService"Dim bindingl As New WSHttpBindingQUsing host As New ServiceHost(GetType (ExamService)) host.AddServiceEndpoint(GetType(IExam), bindingl, baseAddress)End Using 

D. Dim baseAddress As String = _"http: //localhost:8000/ExamService/service"Dim bindingl 

As New NetTcpBindingQUsing host As New ServiceHost(GetType(ExamService)) 

host.AddServiceEndpoint(GetType(IExam), 

bindingl, baseAddress)End Using 

Answer:


Question No. 177

You want to trace the flow of events in process activites (active?) located on server. What code should you use? 

A. <source name="System.ServiceModel" switchValue="Critical" propagateActivity="true"> 

B. <source name="System.ServiceModel" switchValue="Verbose" propagateActivity="true"> 

C. <source name="System.ServiceModel" switchValue="Information" propagateActivity="false"> 

D. <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="false"> 

Answer:


Question No. 178

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application consists of the following components: 

An ASP.NET Web application that is deployed on a Web server named WEB1 An ASMX Web service that is deployed on an application server named APP1 A Microsoft SQL Server database that is deployed on a database server named SQL1 The ASP.NET application connects to an ASMX Web service. The APP1 server hosts several ASMX Web service applications. The ASMX Web service stores and retrieves data from SQL1. 

You need to ensure that the secure communication strategy meets the following requirements: 

The communication configuration between WEB1 and APP1 must be secured without other applications being affected. Server authentication and data encryption must be performed between APP1 and SQL1. Which two secure communication protocols should you use? (Each correct answer presents part of the solution. Choose two.) 

A. Use Secure Sockets Layer between APP1 and SQL1. 

B. Use Secure Sockets Layer between WEB1 and APP1. 

C. Use Internet Protocol Security between APP1 and SQL1. 

D. Use Internet Protocol Security between WEB1 and APP1. 

E. Use Remote Procedure Call encryption between APP1 and SQL1. 

F. Use Remote Procedure Call encryption between WEB1 and APP1. 

Answer: BC 


Question No. 179

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be exposed for consumption. 

You need to ensure that the service supports interoperability with the broadest possible number of Web Service toolkits. The service must also support transport-level Security. 

Which configuration setting should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 180

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a Windows Service environment. 

You need to create a Windows Service class that instantiates a service host. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: