2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
GreatExam 70-513 braindumps including the exam questions and the answer, completed by our senior IT lecturers and the Microsoft product experts, include the current newest 70-513 exam questions.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 251
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 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.)
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?
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.)
Answer:
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 use GreatExam braindump as your 70-513 exam prepare material, we guarantee your success in the first attempt. GreatExam 70-513 practice test provides you everything you will need to take your 70-513 Exam.
2016 Microsoft 70-513 exam dumps (All 341 Q&As) from GreatExam:
http://www.greatexam.com/70-513-exam-questions.html [100% Exam Pass Guaranteed!!!]