Download Free Microsoft 70-513 PDF and VCE Updated Today 251-260

      Comments Off on Download Free Microsoft 70-513 PDF and VCE Updated Today 251-260

Vendor: Microsoft
Exam Code: 70-513
Exam Name: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
Version: 14.91

QUESTION 251
You are developing a Windows Communication Foundation (WCF) service that is used to check the status of orders placed by customers. The following code segment is part of your service. (Line numbers are included for reference only.)

wps4EFF.tmp

You need to ensure that the service always listens at net.pipe://SupplyChainServer/Pipe.
What should you do?

wps6915.tmp

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: C

QUESTION 252
A Windows Communication Foundation (WCF) client application is consuming an RSS syndication feed from a blog.
You have a SyndicationFeed variable named feed. The application iterates through the items as follows. (Line numbers are included for reference only.)

01 For Each item As SyndicationItem In feed.Items
04 Next

You need to display the content type and body of every syndication item to the console.
Which two lines of code should you insert between lines 02 and 03?

A.    Console.WriteLine(item.Content.Type)
Console.WriteLine(DirectCast(item.Content,
TextSyndicationContent).Text)
B.    Console.WriteLine(item.Content.GetType())
Console.WriteLine(DirectCast(item.Content,
TextSyndicationContent).Text)
C.    Console.WriteLine(item.Content.Type)
Console.WriteLine(item.Content.ToString())
D.    Console.WriteLine(item.Content.GetType())
Console.WriteLine(item.Content.ToString())

Answer: A

QUESTION 253
You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.
The service is accessed from your business applications in a server transaction in which the client does not participate.
You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds.
What should you do?

A.    Set the service binding sendTimeout attribute to 00:00:45.
B.    Apply <OperationBehavior (TransactionScopeRequired:=False) > to the service operation.
C.    Set the service binding receiveTimeout attribute to 00:00:45.
D.    Apply OerviceBehavior (TransactlonTiitieout: = "00:00:45")> to the service implementation.

Answer: D

QUESTION 254
You are configuring services to be discoverable. The services must be discoverable without relying on a central server. Client applications that consume the services are on a network segment that is separate from the network segment that the services are located on.
A firewall blocks all TCP ports between the two network segments, but allows other protocols to pass through.
You need to ensure that the client applications can discover the services.
What should you do?

A.    Use ad-hoc discovery mode over HTTP.
B.    Use ad-hoc discovery mode over UDP.
C.    Use managed discovery mode over HTTP.
D.    Use managed discovery mode over UDP.

Answer: B

QUESTION 255
You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).
You have the following requirements:

– You must enable the /catalog.svc IItems operation to respond using
the POX, JSON, or ATOM formats.
– You also must ensure that the same URL is used regardless of the
result type.
– You must determine the response format by using the Accepts HTTP
header.

What should you do?

A.    Implement the IChannelInitializer interface in the service class.
B.    Implement the System.Runtime.Serialization.IFormatterConverter interface in the service class.
C.    Set the BodyStyle parameter of the WebGet attribute on the operation to WebMessageBodyStyle.
WrappedResponse.
D.    Set the retum type of the operation to System.ServiceModel.Channels.Message.
Use the current WebOperationContext methods to return the data in the required format.

Answer: D

QUESTION 256
You have an existing Windows Communication Foundation (WCF) Web service.
The Web service is not responding to messages larger than 64 KB.
You need to ensure that the Web service can accept messages larger than 64 KB without generating errors. What should you do?

A.    Increase the value of maxReceivedMessageSize on the endpoint binding.
B.    Increase the value of maxRequestLength on the httpRuntime element.
C.    Increase the value of maxBufferSize on the endpoint binding.
D.    Increase the value of maxBufferPoolSize on the endpoint binding.

Answer: A

QUESTION 257
You are developing a Windows Communication Foundation (WCF) service to replace an existing ASMX Web service.
The WCF service contains the following code segment. (Line numbers are included for reference only.)

wpsD2A2.tmp

The existing Web service returns the EmployeeID as an attribute of the EmployeeInfo element in the response XML.
You need to ensure that applications can consume the service without code changes in the client.
What should you do?

A.    Insert the following code at line 02.
[DataContractFormat()]
Insert the following code at line 22.
[DataMember()]
B.    Insert the following code at line 02.
[XmlSerializerFormat()]
Insert the following code at line 22.
[XmlAtttibute()]
C.    Insert the following code at line 09.
[XmlSerializerFormat()]
Insert the following code at line 22.
[XmlAttribute()]
D.    Insert the following code at line 19.
[DataContractFormat()]
Insert the following code at line 22.
[DataMember()]

Answer: D

QUESTION 258
You are developing a Windows Communication Foundation (WCF) client application.
You instantiate a client class that inherits from ClientBase. The client instance must always be shut down in such a way that tt can free up any resources it is referencing.
You need to ensure that all exceptions are caught and the instance is always properly shut down.
Which code segment should you use?

wpsF761.tmp

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: B

QUESTION 259
Drag and Drop Question
You develop a Windows Communication Foundation (WCF) service that is hosted within a console application. The service implements the IRegistrationService interface in a class named RegistrationService.
You need to add code to the console application to host the WCF service.
How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

wpsF07.tmp

Answer:

wps2324.tmp

 

QUESTION 260
The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its binding.
Your company’s policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network.
What should you do?

A.    Set the ProtectionLevel property on the service contract and update the binding attribute in the
endpoint element of the configuration file to wsHttpBinding.
B.    Set the ProtectionLevel property on the service contract and update the bindingConfiguration
attribute in the endpoint element of the configuration file to webHttpBinding.
C.    Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in
the endpoint element of the configuration file to wsHttpBinding.
D.    Set the PrincipalPermissionAttribute on the service contract and update the bindingConfiguration
attribute in the endpoint element of the configuration file to wsHttpBinding.

Answer: A

If you want to pass Microsoft 70-513 exam 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