2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
GreatExam provides 100% pass 70-513 exam questions and answers for your Microsoft 70-513 exam. We provide Microsoft 70-513 exam questions from GreatExam dumps and answers for the training of 70-513 practice test.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 271
Drag and Drop Question
You create a Windows Communication Foundation (WCF) service.
The service uses a federated security architecture.
The architecture consists of the following components:
– Order service
– Store security token service (STS)
– Home security token service (STS)
– Order client application
The Order service includes the following markup:
The Store service includes the following markup:
You have the following requirements:
– The Order service requires authentication to access any of the service operations.
– The Order service must redirect all client application authentication requests to the Store STS.
– The Store STS must redirect all client application authentication requests to the Home STS.
You need to configure the sequence of events that occur when the client application accesses an Order service operation.
Which six actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Answer:
QUESTION 272
You are developing a Windows Communication Foundation (WCF) service that must be discoverable.
You need to ensure that the ServiceHost instance supports multiple discovery versions.
What should you do?
A. – Specify a unique DiscoveryVersion parameter for each endpoint constructor.
– Use the same value for the Address property of each endpoint.
B. – Use the endpoint constructor without the DiscoveryVersion parameter.
– Use a unique value for the Address property of each endpoint.
C. – Specify a unique DiscoveryVersion parameter for each endpoint constructor.
– Use a unique value for the Address property of each endpoint.
D. – Use the endpoint constructor without the DiscoveryVersion parameter.
– Use the same value for the Address property of each endpoint.
Answer: C
QUESTION 273
You are creating a Windows Communication Foundation (WCF) service.
You do not want to expose the internal implementation at the service layer.
You need to expose the following class as a service named Arithmetic with an operation named Sum.
Public Class Calculator
Public Function Add
(ByVal x As Integer,
ByVal y As Integer) As Integer
End Function
End Class
Which code segment should you use?
A. <ServiceContract(Namespace:=”Arithmetic”)>
Public Class Calculator
<OperationContract(Action:=”Sum”)>
Public Function Add(ByVal x As Integer,
ByVal y As Integer) As Integer
End Function
End Class
B. <ServiceContract(ConfigurationName:=”Arithmetic”)>
Public Class Calculator
<OperationContract(Action:=”Sum”)>
Public Function Add(ByVal x
As Integer,
ByVal y As Integer) As Integer
End Function
End Class
C. <ServiceContract(Name:=”Arithmetic”)>
Public Class Calculator
<OperationContract(Name:=”Sum”)>
Public Function Add(ByVal x As Integer,
ByVal y As Integer) As Integer
End Function
End Class
D. <ServiceContract(Name:=”Arithmetic”)>
Public Class Calculator
<OperationContract(ReplyAction:=”Sum”)>
Public Function Add(ByVal x As Integer,
ByVal y As Integer) As Integer
End Function
End Class
Answer: C
QUESTION 274
You have an existing Windows Communication Foundation (WCF) service.
You need to ensure that other services are notified when the service is started.
What should you do?
A. Add the following standard endpoint to the service.
<endpoint name=”udpAnnouncementEndpoint”
kind=”udpDiscoveryEndpoint” />
B. Add the following standard endpoint to the service.
<endpoint name=”udpDiscoveryEndpoint”
kind=”udpAnnouncementEndpoint” />
C. Add a service behavior with the following element.
<serviceDiscovery>
<announcementEndpoints>
<endpoint kind=”udpDiscoveryEndpoint” />
</announcementEndpoints>
</serviceDiscovery>
D. Add a service behavior with the following element.
<serviceDiscovery>
<announcementEndpoints>
<endpoint kind=”udpAnnouncementEndpoint” />
</announcementEndpoints>
</serviceDiscovery>
Answer: D
QUESTION 275
A Windows Communication Foundation (WCF) service is self-hosted in a console application.
The service implements the lTimeService service interface in the TimeService class.
You need to configure the service endpoint for HTTP communication.
How should you define the service and endpoint tags?
A. Define the service tag as follows:
<service name=”TimeService”>
Define the endpoint tag as follows:
<endpoint kind=”TimeService”
address=”http://localhost:8080/TimeService”
binding=”wsHttpBinding” contract=”ITimeService”/>
B. Define the service tag as follows:
<service name=”TimeService”>
Define the endpoint tag as follows:
<endpoint kind=”ITimeService”
address=”http://localhost:8080/TimeService”
binding=”wsHttpBinding” contract=”ITimeService” />
C. Define the service tag as follows:
<service name=”ITimeService”>
Define the endpoint tag as follows:
<endpoint name=”TimeService”
address=”http://localhost:8080/TimeService”
binding=”wsHttpBinding” contract=”ITimeService”/>
D. Define the service tag as follows:
<senvice name=”TimeService”>
Define the endpoint tag as follows:
<endpoint address=”http://localhost:8080/TimeService”
binding=”wsHttpBinding” contract=”ITimeService”/>
Answer: D
QUESTION 276
You are creating an application that consumes a Windows Communication Foundation (WCF) service.
The service implements the IService contract.
The client application contains the CallbackHandler class, which implements IServiceCallback.
You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.
Which code segment should you use?
A. Dim handler = New CallbackHandler()
Dim clientFactory =
New DuplexChannelFactory(Of IService)(
New WSHttpContextBinding() )
Dim client = clientFactory.CreateChannel(
New InstanceContext(handler),
New EndpointAddress (“…”))
B. Dim handler = New CallbackHandler()
Dim clientFactory =
New DuplexChannelFactory( Of IService)(
GetType(CallbackHandler),
New USDualHttpBindingO )
Dim client = clientFactory.CreateChannel(
New InstanceContext (handler) ,
New EndpointAddress (“…”))
C. Dim handler – New CallbackHandler()
Dim clientFactory =
New DuplexChannelFactory(Of IService)(
GetType(CallbackHandler),
New HSDualHttpBindingO) Dim client = clientFactory.CreateChannel(
New EndpointAddress (“…”))
D. Dim handler = New CallbackHandler()
Dim clientFactory =
New DuplexChannelFactory(Of IService)( New WSHttpBinding())
Dim client = clientFactory.CreateChannel(
New InstanceContext(handler),
New EndpointAddress (“…”))
Answer: B
QUESTION 277
You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows;
SubmitOrder makes a call to another service.
The ProcessMessage method does not perform as expected under a heavy load you need to enable processing of multiple messages.
New messages must only be processed when the ProcessMessage method is not processing requests, or when it is waiting for calls to SubmitOrder to return.
Which attribute should you apply to the MessageProcessor class?
A. CallbackBehavior (ConcurrencyMode: ConcurrencyMode Reentrant)
B. CallbackBehavior (ConcurrencyMode:=ConcurrencyModeMuttiple)
C. ServiceBehavior (Conc urrencyMode: =Conc urrencyMode. Reentrant)
D. ServiceBehavior (ConcurrencyMode ConcurrencyMode Multiple)
Answer: A
QUESTION 278
You develop a Windows Communication Foundation (WCF) service.
You name the service MovieService in the Movie namespace.
The service is hosted in Microsoft Internet Information Services (IIS).
You copy the assembly containing the service to the bin folder in the virtual directory path.
You need to set up the URI that is mapped to the service.
What should you do?
A. Add the following code segment to the web.config file.
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress=”./Movie” service=”Movie.MovieService” />
</serviceActivations>
</serviceHostingEnvironment>
B. Add a Movie.svc file in the root of the virtual path with the following line.
<% @ServiceHost language=”C#” Service=”MovieService”>
C. Add the following code segment to the web.config file.
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress=”./Movie.svc” service=”Movie.MovieService” />
</serviceActivations>
</serviceHostingEnvirornnent>
D. Add a Movie.svc file in the root of the virtual path with the following line.
<% @ServiceHost language=”C#” Service=”MovieService.svc” %>
Answer: B
QUESTION 279
You are developing a Windows Communication Foundation (WCF) service.
The service configuration file has a <System.Diagnostics> element defined.
You need to ensure that all security audit information, trace logging, and message logging failures are recorded.
Which configuration segment should you add to the <System.Diagnostics> element?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
QUESTION 280
You are developing a Windows Communication Foundation (WCF) service.
You enable logging in the configuration file.
The opening tag is defined as follows.
You need to ensure that logging is implemented so that only messages with SOAP headers are logged.
What should you add to the filters element of the application configuration file?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
GreatExam is the leader in 70-513 certification test questions with training materials for Microsoft 70-513 exam dumps. GreatExam Microsoft training tools are constantly being revised and updated. We 100% guarantee Microsoft 70-513 exam questions with quality and reliability which will help you pass Microsoft 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!!!]