2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
GreatExam updates Microsoft 70-513 exam dumps questions, adds some new changed questions from Microsoft Official Exam Center. Want to know 2016 70-513 exam test points? Download the following free GreatExam latest exam questions today!
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 141
Drag and Drop Question
You create a Windows Communication Foundation (WCF) service.
The service must be multi-threaded and maintain state across threads.
You need to create the code for the service.
Which code segments should you use? (To answer, drag the appropriate code segments to the correct location or locations 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.)
QUESTION 142
You are developing a Windows Communication Foundation (WCF) client application.
The client application contains the following code.
The configuration file contains the following lines.
You need to ensure that the service is consumed.
Which code segment should you use?
A. var client = new SocialClient(“SocialClient”);
client.Endpoint.Behaviors.Add(new WebHttpBehavior());
B. var client = new SocialClient(“SocialClient”);
client.Endpoint.Behaviors.Add(new WebScriptEnablingBehovior());
C. var client = new SocialClient(“POST”);
client.Endpoint.Behaviors.Add(new WebHttpBehovior());
D. var client = new SocialClient(“POST”);
client.Endpoint.Behaviors.Add(new WebScriptEnablingBehavior());
Answer: A
QUESTION 143
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 144
You develop a Windows Communication Foundation (WCF) service that is hosted by using Windows Activation Services (WAS).
You need to configure the service to accept requests that use the TCP/IP protocol.
What should you do? (Each correct answer presents part of the solution. Choose two.)
A. Run the aspnet_regiis executable to enable TCP/IP service activation.
B. In Control Panel, enable the Windows Communication Foundation HTTP Activation feature.
C. In Control Panel, enable the WCF Non-HTTP Activation feature.
D. Run the appcmd executable to enable TCP/IP service activation.
Answer: BD
QUESTION 145
You have a Windows Communication Foundation (WCF) service that uses a multicast protocol as a custom transport.
The service implements the channel framework.
You need to choose a message exchange pattern for the transport.
What should you use?
A. Datagram by using the IOutputChannel interface for clients and the IInputChannel interface
for the service.
B. Half-Duplex by using the IRequestChannel interface for clients and the IReplyChannel
interface for the service.
C. Duplex by using the IDuplexChannel interface for both clients and the service.
D. Request-Response by using the IRequestChannel interface for clients and the
IReplyChannel interface for the service.
Answer: A
Part 2 – VB
QUESTION 146
A Windows Communication Foundation (WCF) service that handles corporate accounting must be changed to comply with government regulations of auditing and accountability.
You need to configure the WCF service to execute under the Windows logged-on identity of the calling application.
What should you do?
A. Within the service configuration, add a serviceAuthorization behavior to the service, and set
impersonateCallerForAllOperations to true.
B. Within the service configuration, add a serviceAuthenticationManager behavior to the service,
and set serviceAuthenticationManagerType to Impersonate.
C. Within the service configuration, add a serviceSecurityAudit behavior to the service, and set
serviceAuthorizationAuditLevel to SuccessOrFailure.
D. Within the service configuration, add a serviceCredentials behavior to the service, and set
type to Impersonate.
Answer: A
QUESTION 147
A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients. (Line numbers are included for reference only.)
01 <ServiceContract()>
02 Public Interface ITeamMessageService
04 <OperationContract()>
05 Function GetMessage() As String
07 <OperationContract()>
08 Sub PutMessage(ByVal message As String)
09 End Interface
The code for the service class is as follows.
10 Public Class TeamMessageService
11 Implements ITeamMessageService
13 Dim key As Guid = Guid.NewGuid()
14 Dim message As String = “Today s Message”
16 Public Function GetMessage() As String _
17 Implements ITeamMessageService.GetMessage
19 Return String.Format(“Message:{0}. Key:{1}”, message, key)
20 End Function
22 Public Sub PutMessage(ByVal message As String) _
23 Implements ITeamMessageService.PutMessage
25 Me.message = message
26 End Sub
28 End Class
The service is self-hosted. The hosting code is as follows.
29 Dim host As ServiceHost =
New ServiceHost(GetType(TeamMessageService))
30 Dim binding As BasicHttpBinding =
New BasicHttpBinding(BasicHttpSecurityMode.None)
31 host.AddServiceEndpoint(
“MyApplication.ITeamMessageService”, binding,
“http://localhost:12345″)
32 host.Open()
You need to ensure that all clients calling GetMessage will retrieve the updated string if the message is updated by any client calling PutMessage.
What should you do?
A. Add the following attribute to the TeamMessageService class, before line 10.
<ServiceBehavior(InstanceContextMode:=InstanceContextMode.Single)>
B. Add the following attribute to the TeamMessageService class, before line 10002E
<ServiceBehavior(InstanceContextMode:=
InstanceContextMode.PerSession)>
C. Pass a service instance to the instancing code in line 29, as follows.
Dim host As ServiceHost = New ServiceHost(New TeamMessageService())
D. Redefine the message string in line 14, as follows.
Shared message As String = “Today s Message”
E. Then change the implementation of PutMessage in lines 22-26 to the following.
Public Sub PutMessage(ByVal message As String) _
Implements ITeamMessageService.PutMessage
TeamMessageService.message = message
End Sub
Answer: A
QUESTION 148
You need to modify a client application that consumes a Windows Communication Foundation (WCF) service.
The service metadata is no longer available.
You need to modify the previously generated proxy to include asynchronous calls to the service.
What should you do?
A. Update the service reference with the Generate asynchronous operations option.
B. Create a partial class for the previously generated proxy and include the new
asynchronous methods.
C. Create a class with the same name as the previously generated proxy and add the new
asynchronous methods.
Add the new class to a namespace that is different from the original proxy.
D. Create a class with the same name as the previously generated proxy and add the new
asynchronous methods as partial methods.
Add the new class to a namespace that is different from the original proxy.
Answer: B
QUESTION 149
Drag and Drop Question
You develop a Windows Communication Foundation (WCF) service.
The service implements the IRegistrationService interface in a class named RegistrationService.
You need to configure the service to use file-less activation.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct location or locations 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 150
You are developing a Windows Communication Foundation (WCF) service.
You need to enable security auditing for all events.
What should you do?
A. Set the serviceAuthorizationAuditLevel setting to Success and the
messageAuthenticationAuditLevel setting to Success.
B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation
setting to Application.
C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the
messageAuthenticationAuditLevel setting to SuccessAndFailure.
D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the
auditLogLocation setting to Security.
Answer: C
GreatExam promise that all 70-513 questions and answers are the latest updated, we aim to provide latest and guaranteed questions for all certifications. You just need to be braved in trying then we will help you arrange all later things! 100% pass all exams you want or full money back! Do you want to have a try on passing 70-513?
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!!!]