2014 Latest Pass4sure&Lead2pass Microsoft 70-513 Dumps (41-50)

QUESTION 41
You are hosting a Windows Communication Foundation (WCF) service under Microsoft Interent Information Services (IIS) 7.0.
You have set up a web site in IIS Manager. The physical path is c:\wwwroot\Calendar.
There is a Calendar.svc file in the c:\wwwroot\Calendar folder. It contains the following directive:
<% @ServiceHost Language=”C#” Debug=”true” Service=”Calendar.Calendar” CodeBehind=”CalendarSvc.cs” %>
The CalendarSvc.cs file contains the source for the Calendar class in the Calendar namespace.
You compile this code into the Calendar.dll file. You need to deploy your service to the web site. What should you do?

A.    Copy the Calendar.dll file to the c:\wwwroot\Calendar\code folder
B.    Copy the Calendar.dll file to the c:\wwwroot\Calendar\bin folder
C.    Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\bin folder
D.    Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\code folder

Answer: B

QUESTION 42
You are maintaining a Windows Communication Foundation (WCF) service that uses a custom username password class to authenticate clients with. The service certificate is hosted in the deployment server store for trusted root certificate authorities and has a Subject value of TaxServiceKey. Other service certificates hosted on the same server also use TaxServiceKey as a Subject value.
You need to ensure that the service identifies itself with a certificate whose subject name and distinguished names are TaxServiceKey.
Which code segment should you use?

A.    HostInstance Credentials.ServiceCertificate SetCertificate(
StoreLocation.LocalMachine, StoreName.My,
x509FindType.FindBySubjectName, “CN=”TaxServiceKey”);
B.    HostInstance Credentials.ServiceCertificate SetCertificate(
StoreLocation.LocalMachine, StoreName.AuthRoot,
x509FindType.FindBySubjectName, “CN=”TaxServiceKey”);
C.    HostInstance Credentials.ServiceCertificate SetCertificate(
StoreLocation.LocalMachine, StoreName.My,
x509FindType.FindByDistinguishedName, “CN=”TaxServiceKey”);
D.    HostInstance Credentials.ServiceCertificate SetCertificate(
StoreLocation.LocalMachine, StoreName.Root,
x509FindType.FindByDistinguishedName, “CN=”TaxServiceKey”);

Answer: D

QUESTION 43
You are hosting a Windows Communication Foundation (WCF) service at http://www.contoso.com for a law enforcement agency.
The agency adds operations to support sending biometric fingerprint data via non-buffered streaming.
The service data is routed between intermediaries. The WCF binding you are using by default does not support encryption.
You need to ensure that the fingerprint data is not disclosed when passed over the network. What should you do?

A.    Use basicHttpBinding with message security to https://www.contoso.com
B.    Use basicHttpBinding with transport security to https://www.contoso.com
C.    Use wsHttpBinding with message security to https://www.contoso.com
D.    Use wsHttpBinding with transport security to http://www.contoso.com

Answer: B

QUESTION 44
You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.
You create an intermediate WCF service for logging messages sent to the primary service.
The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.
You need to enable inspection of the malformed data and prevent message tampering. What do you do?

A.    Specify a protection level of None in the contract for the intermediate service.
Disable message and transport security from the client application configuration file.
B.    Specify a protection level of Sign in the contract for the intermediate service.
Disable transport security from the client application configuration file.
C.    Modify the binding on the intermediate service to use netNamedPipeBinding.
D.    Modify the binding on the intermediate service to use webHttpBinding.

Answer: B

QUESTION 45
You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.
The service must isolate session data to each user. You need to monitor the instancing behaviour used in the service.
Which performance counter should you monitor?

A.    ServiceModeService 4.0.0.0\Calls
B.    ServiceModeService 4.0.0.0\Instances
C.    ASP.Net StateService \ Server Sessions Active
D.    ASP.Net StateService \ Server Sessions Total

Answer: B

QUESTION 46
You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data.
The service contract is defined as follows. (Line numbers are included for reference only)
01 [ServiceContract]
02 public interface IDataUpdate
03 {
04    [OperationContract]
05    [TransactionFlow(TransactionFlowOption.Mandatory)]
06    void Update(string accountNumber, double amount);
07 }
08
09 class UpdateService : IDataUpdate
10 {
11    [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = false)]
12    public void Update(string accountNumber, double amount)
13    {
14       …
15    }
16 }
17
You need to ensure that the service is invoked within the transaction. What should you do?

A.    Replace line 01 with the following code
[ServiceContract(SessionMode = SessionMode.NotAllowed)]
B.    Replace line 01 with the following code
[ServiceContract(SessionMode = SessionMode.Required)]
C.    Call the Invoke method of the form and supply a delegate.
D.    Call the BeginInvoke method of the form and supply a delegate.

Answer: B

QUESTION 47
You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.
The ServiceHost instance is created in the Form Constructor.
You need to ensure that the service is not blocked while the UI thread is busy. What should you do?

A.    Decorate the service implementation class with the following line of code
[ServiceBehavior(UseSyncronizationContext = false)]
B.    Decorate the service implementation class with the following line of code
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
C.    Call the Invoke method of the form and supply a delegate.
D.    Call the BeginInvoke method of the form and supply a delegate.

Answer: A

QUESTION 48
You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information.
You define the following service contract. (Line numbers are included for reference only.)
01 [ServiceContract(SessionMode = SessionMode.Required)]
02 public interface IFinancialService
03 {
04   [OperationContract]
05   string Login(int employeeID, string passwordHash);
06
07   [OperationContract]
08   double GetBonus(int month);
09
10   [OperationContract(IsTerminating = true)]
11   void Logout();
12 }
Client application can invoke methods without logging in. You need to ensure that the client applications invoke Login before
invoking any other method. You also need to ensure that client applications cannot consume the service after invoking Logout.
Which two action should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Replace line 04 with the following code.
[OperationContract(IsInitiating = false)]
B.    Replace line 04 with the following code.
[OperationContract(IsInitiating = true, IsTerminating = true)]
C.    Replace line 07 with the following code.
[OperationContract(IsInitiating = false)]
D.    Replace line 10 with the following code.
[OperationContract(IsInitiating = false, IsTerminating = true)]

Answer: CD

QUESTION 49
You develop a Windows Communication Foundation (WCF) service that interacts with Microsoft Message Queuing (MSMQ). The service requires sessions.
You need to create a custom binding that enables messages sent to the queue to be viewed when you are using a listener tool.
Which binding elements should you use?

A.    textMessageEncoding and msmqTransport in this order.
B.    textMessageEncoding and msmqIntegrationTransport in this order.
C.    msmqTransport and textMessageEncoding in this order.
D.    msmqIntegrationTransport and textMessageEncoding in this order.

Answer: A

QUESTION 50
You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently.
On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property.
You need to ensure that client applications can communicate with the service and discover changes to the service endpoints.
What should you do?

A.    Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.
B.    Add a new AnnouncementClient to the Behaviors collection in the client application.
C.    Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.
D.    Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the
client application.

Answer: C

If you want to pass Microsoft 70-513 successfully, donot missing to read latest lead2pass Microsoft 70-513 dumps.
If you can master all lead2pass questions you will able to pass 100% guaranteed.

http://www.lead2pass.com/70-513.html

         

Comments are closed.