[Realistic] 70-503 Microsoft exam fees 106-120 (Mar 2016)

★ 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. 106

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the following service contract. 


You need to ensure that the DoSomething operation is executed by a single thread at a time. 

What are two possible service implementations you should use to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: BC 


Question No. 107

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following XML code fragment. 


You need to add an endpoint definition to the service configuration for the URL http://localhost:8000/ServiceModelExam/service to expose the Contoso. Exams. lExam service contract. 

Which definition should you add? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 108

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.) 

A. Create a message inspector. Insert the custom headers by using the ICIientMessagelnspector.AfterReceiveReply method. 

B. Create a message inspector. Insert the custom headers by using the ICIientMessagelnspector.BeforeSendRequest method. 

C. Create a custom endpoint behavior. Add the message inspector by using the IEndpointBehavior.ApplyClientBehavior method. 

D. Create a custom endpoint behavior. Add the message inspector by using the IEndpointBehavior.AddBindingParameters method. 

Answer: BC 


Question No. 109

You create a client application by using Microsoft .NET Framework 3.5. The client application consumes a Windows Communication Foundation service that uses the netMsmqBinding binding. 

The binding uses a private transactional queue named Library. 

The following code fragment is part of the application configuration file. 

(Line numbers are included for reference only.) 

01 <endpoint binding="netMsmqBinding" 

02 contract="ServiceReference.ILibrary" 

04 /> 

You need to specify the address of the endpoint. Which attribute should you insert at line 03? 

A. Address=". \private$\Library" 

B. Address="net.msmq://.\private$\Library" 

C. Address="net.msmq://localhost/private/Library" 

D. Address="net.msmq://localhost/private/transactional/Library" 

Answer:


Question No. 110

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. 

The WCF service must authenticate the client applications by validating credit card numbers and expiry dates. You write the following code segment. (Line numbers are included for reference only.) 

01 class CreditCardTokenAuthenticator: SecurityTokenAuthenticator 

02 { 

03 // Implementation of other abstract methods comes here. 

04 protected override ReadOnlyCollection<IAuthorizationPolicy> ValidateTokenCore(SecurityToken token) 

05 { 

06 CreditCardToken creditCardToken = token as CreditCardToken; 

07 } 

09 private bool IsCardValid(string cardNumber, 13 DateTime expirationDate) 

10 { 

11 // Validation code comes here. 

12 } 

13 } 

You need to implement custom authentication for the WCF service. Which code segment should you insert at line 07? 

A. if (IsCardValid(creditCardToken.CardNumber, creditCardToken.ValidTo)) 

return null; 

else 

throw new SecurityTokenValidationException(); 

B. if (IsCardValid(creditCardToken.CardNumber, creditCardToken.ValidTo)) 

throw new SecurityTokenValidationException(); 

else 

return null; 

C. if (IsCardValid(creditCardToken.CardNumber, creditCardToken.ValidTo)) 

return null; 

else 

return new List<IAuthorizationPolicy>(0).AsReadOnly(); 

D. if (IsCardValid(creditCardToken.CardNumber, creditCardToken.ValidTo)) 

return new List<IAuthorizationPolicy>(0).AsReadOnly(); 

else 

return null; 

Answer:


70-503 test preparation

Question No. 111

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service will authenticate the client applications by using Personal Information Cards. You write the following code segment. (Line numbers are included for reference only.) 


You need to ensure that only those client applications that provide a valid e-mail address can execute the Update method. Which code segment should you insert at line 15? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 112

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


You have not deployed the IMathService service. 

You need to expose the AddNumbers (a As Double, b As Double) As Double operation to the IMathService service contract. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 113

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

The existing service interface is named IMyService, and contains the following code segment. 


You create a new service named IMyServiceVI that contains an operation named DoSomethingElse. 

You need to ensure that existing client applications are still able to access the IMyService.DoSomething method without modifying client code. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 114

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


You need to ensure that when the MyMethod method is called, the service is the root of a transaction. 

Which code segment should you insert at line 08? 

A. <OperationBehavior(TransactionScopeRequired:=True)> _ 

<TransactionFlow(TransactionFlowOption.Allowed)> _ 

B. <OperationBehavior(TransactionScopeRequired:=True)> _ 

<TransactionFlow(TransactionFlowOption.NotAllowed)> _ 

C. <OperationBehavior(TransactionScopeRequired:=False)> _ 

<TransactionFlow(TransactionFlowOption.Mandatory)> _ 

D. <OperationBehavior(TransactionScopeRequired:=False)> _ 

<TransactionFlow(TransactionFlowOption.NotAllowed)> _ 

Answer:


Question No. 115

You are creating a client application by using Microsoft .NET Framework 3.5. The application will be accessible on the Internet. 

You plan to use the wsHttpBinding binding by using HTTPS. The Windows Communication Foundation (WCF) service is hosted by a Windows service. You associate the HTTPS port of the WCF server with an X.509 certificate. 

You need to ensure that the client application trusts and validates the certificate. 

What should you do? 

A. . Derive a class from the System.IdentityModel.Selectors.X509CertificateValidator class. 

. Create an instance of the derived class on the server side. 

. Write the validation code in the public override void Validate(X509Certificate2 certificate) method. 

B. . Derive a class from the System.IdentityModel.Selectors.X509CertificateValidator class. 

. Create an instance of the derived class on the client side. 

. Write the validation code in the public override void Validate(X509Certificate2 certificate) method. 

C. . Subscribe to the ServerCertificateValidationCallback event of the System.Net.ServicePointManager class. 

. Write the validation code in the boolValidate(object sender, X509Certificate cert, X509Chain chain. System.Net.Security.SslPolicyErrors error) event handler on the client side. 

D. . Subscribe to the ServerCertificateValidationCallback event of the System.Net.ServicePointManager class. 

. Write the validation code in the boolValidate(object sender, X509Certificate cert, X509Chain chain. System.Net.Security .SslPolicyErrors error) event handler on the server side. 

Answer:


70-503 exam

Question No. 116

You have some code: 

<system.diagnostics> 

<sources> 

(.......) 

<listeners> 

<add name="DefaultListener" /> 

</listeners> 

</source> 

</sources> 

What line should you insert at (......) to enable tracing? 

A. <source name="System.ServiceModel.MessageLogging"> 

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

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

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

Answer:


Question No. 117

You are creating a client application by using Microsoft .NET Framework 3.5. The client application uses a Windows Communication Foundation service. 

To log the called service proxy methods and their parameters, you implement custom endpoint behavior in the following class. 

Class ParametersLoggerBehavior 

Implements lEndpointBehavior End Class 

You also create the following class for the custom behavior. 

Class LoggerElement 

Inherits BehaviorExtensionElement End Class 

You add the following configuration code fragment to the application configuration file. (Line numbers are included for reference only.) 


You need to ensure that the endpoint uses the custom behavior. Which configuration settings should you insert at line 03? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 118

You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5. 

You need to inspect the parameters on the client application. 

Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.) 

A. Implement the IParameterlnspector interface. 

B. Implement the ICIientMessagelnspector interface. 

C. Insert a behavior before you call the ClientBase.Open method. 

D. Insert a code segment that creates a behavior in the ICallContextlnitializer.BeforelnvokeO method. 

E. Implement the lEndpointBehavior behavior to add the parameter inspector to the Dispatcher. ClientOperation.Parameterlnspectors method. 

F. Implement the lEndpointBehavior behavior to add the parameter inspector to the Dispatcher. DispatchOperation.Parameterlnspectors method. 

Answer: ACE 


Question No. 119

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

You need to ensure that data sent in a SOAP header is in the following XML format. 

<Data> 

<string>String 1</string> 

<string>String 2</string> 

<string>String 3</string> 

</Data> 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 120

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


You need to create a service contract that meets the following requirements: 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: