[2016-New] Free Sharing Of Updated 70-513 VCE And PDF Dumps From GreatExam (181-190)

Published on Author admin

2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!

100% Free Download! 100% Pass Guaranteed!

2016 timesaving comprehensive guides for Microsoft 70-513 exam: Using latest released GreatExam 70-513 practice tests questions, quickly pass 70-513 exam 100%! Following questions and answers are all new published by Microsoft Official Exam Center!

Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)

QUESTION 181
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode.
The binding requires users to provide their Windows logon credentials.
You need to retrieve the identity of the caller.
What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)

A.    Thread.CurrentPrincipal.Identity.Name
B.    HttpContext.Current.User.Identity.Name
C.    ServiceSecurityContext.Current.PrimaryIdentity.Name
D.    OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name

Answer: CD

QUESTION 182
You are adding a Windows Communication Foundation (WCF) service to an existing application. The application is configured as follows. (Line numbers are included for reference only)
01 <configuration>
02 <system.serviceModel>
03 <services>
04 <service name=”Contoso.Sales.Stock.Service”
05 behaviorConfiguration=”MetadataBehavior”>
06 <host>
07 <baseAddresses>
08 <add baseAddress=”http://contosso.com:8080/StockService” />
09 </baseAddresses>
10 </host>
11 </service>
12 </services>
13 <behaviors>
14 <serviceBehaviors>
15 <behavior name=”MetadataBehavior”>
16 </behavior>
17 </serviceBehaviors>
18 </behaviors>
19   …
You need to configure the service to publish the service metadata.
Which two actions should you perform? (Each answer presents part of the solution. Choose two.)

A.    Add the following XML segment between lines 10 and 11:
<endpoint address=”” binding=”mexHttpBinding”
contract=”MetadataExchange” />
B.    Add the following XML segment between lines 10 and 11:
<endpoint address=”” binding=”basicHttpBinding”
contract=”MetadataExchange” />
C.    Add the following XML segment between lines 15 and 16:
<serviceDiscovery>
    <anouncementEndpoints>
       <endpoint address=””/>
    </anouncementEndpoints>
</serviceDiscovery>
D.    Add the following XML segment between lines 15 and 16:
<serviceMetadata httpGetEnabled=”true” />

Answer: AD

QUESTION 183
A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine.
Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.
You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.
Which behavior should you configure and apply to the service?

A.    routing
B.    serviceDebug
C.    serviceSecurityAudit
D.    workflowUnhandledException

Answer: B

QUESTION 184
You are moving a Windows Communication Foundation (WCF) service into production.
You need to be able to monitor the health of the service.
You only want to enable all performance counter instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application configuration file?

A.    <diagnostics performanceCounters=”ServiceOnly” />
B.    <diagnostics wmiProviderEnabled=”true” performanceCounters=”Off” />
C.    <diagnostics performanceCounters=”All” />
D.    <diagnostics wmiProviderEnabled=”true” />

Answer: A

QUESTION 185
You are developing a Windows Communication Foundation (WCF) service.
The service operation takes a customer number as the only argument and returns information about the customer.
The service requires a security token in the header of the message.
You need to create a message contract for the service.
Which code segment should you use?

A.    [ServiceContract]
public interface IService
{
[OperationContract]
CustomerInformation GetCustomerInformation(Header header,
int customerNumber);
}
[DataContract]
public class CustomerInformation
{

}
[MessageContract]
public class Header
{
[MessageHeader]
public string SecurityTag;
}
B.    [ServiceContract]
public interface IService
{
[OperationContract]
CustomerInformation GetCustomerInformation(Header header,
int customerNumber);
}
[MessageContract]
public class CustomerInformation
{

}
[MessageContract]
public class Header
{
[MessageHeader]
public string SecurityTag;
}
C.    [ServiceContract]
public interface IService
{
[OperationContract]
CustomerInformation GetCustomerInformation(CustomerNumber request);
}
[DataContract]
public class CustomerInformation
{

}
[MessageContract]
public class CustomerNumber
{
[MessageHeader]
public string SecurityTag;
[MessageBodyMember]
public int CustomerNumberElement;
}
D.    [ServiceContract]
public interface IService
{
[OperationContract]
CustomerInformation GetCustomerInformation(CustomerNumber request);
}
[MessageContract]
public class CustomerInformation
{

}
[MessageContract]
public class CustomerNumber
{
[MessageHeader]
public string SecurityTag;
[MessageBodyMember]
public int CustomerNumberElement;
}

Answer: D

QUESTION 186
You are developing a client application that consumes a Windows Communication Foundation (WCF) service.
You use the svcutil.exe utility to create a proxy for the service.
You use the svcutil.exe switches that generate asynchronous calls.
GetFlight is a service operation that takes no parameters and returns a string.
The GetFlightCallback method must be called when the service operation returns.
You create an instance of the client proxy with the following code.
Dim client As TravelServiceClient = New TravelServiceClient()
You need to ensure that a callback is received when the GetFlight operation is called asynchronously.
Which code segment should you use?

A.    client.BeginGetFlight(AddressOf
GetFlightCallback, Nothing) client.GetFlight()
B.    client.GetFlight()
client.BeginGetFlight(AddressOf GetFlightCallback, Nothing)
C.    AddHandler client.GetFlightCompleted,
New EventHandler(Of GetFlightCompletedEventArgs)
(AddressOf GetFlightCallback)
client.GetFlightAsync()
D.    Dim asyncResult As IAsyncResult = client.BeginGetFlight
( AddressOf GetFlightCallback, client)
client.EndGetFlight(asyncResult)

Answer: D

QUESTION 187
You are creating a windows Communication Foundation (WCF) service to process orders.
The data contract for the order is defined as follows:
[DataContract]>
public class Order
{
[DataMemberl ()>
public string CardHolderName { get; set;
[DataMember] >
public string CreditCardNumber { get; set; }
)
You have the following requirements:
– Enable the transmission of the contents of Order from the clients to the service.
– Ensure that the contents of CreditCardNumber are not sent across the network in clear text.
– Ensure that the contents of CreditCardNumber are accessible by the service to process the order.
You need to implement the service to meet these requirements
What should you do?

A.    Add a DataProtectionPermission attribute to the CreditCardNumber property and set the
ProtectData property to true.
B.    Convert the DataContract to a MessageContract and set the ProtectionLevel property to
SignAndEncrypt
C.    Change the data type of CreditCardNumber from string to SecureString
D.    Implement the CreditCardNumber property getter and setter In the setter, run the value of
the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method

Answer: B

QUESTION 188
You develop a Windows Communication Foundation (WCF) RESTful service that provides media streaming services.
The service includes the following code. (Line numbers are included for reference only.)
The service must return an XML response.
You need to apply the correct attribute to AddMediaTitle method.
Which code segment should you insert at line 05?
1881

A.    <WebInvoke(Method:= “POST”)>
B.    <WebInvoice (ResposeFormat:=WebMessageFormat .Xml,
BodyStyle :=WebMessageBodyStyle.Bare) >
C.    <WebInvoke()>
D.    <WebInvoice(ResponseFormat :=WebMessageFormat.Xml,
BodyStyle:=WebMessageBodyStyle.Wrapped)>

Answer: D

QUESTION 189
An ASP.NET application hosts a RESTful Windows Communication Foundation (WCF) service at /Services/Contoso.svc.
The service provides a JavaScript resource to clients.
You have an explicit reference to the JavaScript in your page markup as follows.
<script type=”text/javaScript” src=”/Services/Contoso.svc/js” />
You need to retrieve the debug version of the service JavaScript.
What should you do?

A.    In the <%@ ServiceHost %> header for /Services/Contoso.svc, set the Debug attribute to
true.
B.    In the <%@ Page %> header, set the Debug attribute to true.
C.    In the script tag, add a debug attribute and set its value to true.
D.    In the script tag, append debug to the src attribute.

Answer: D

QUESTION 190
You have a Windows Communication Foundation (WCF) service that uses multiple endpoints. The configuration file for the service contains the following XML markup:
<source name=”System.ServiceModer switchValue= “Verbose, ActivityTracing”>
One of the service endpoints throws an exception.
You need to correlate every call to the service to identify the source of the exception.
In the configuration file for the service, what should you do?

A.    In the diagnostic section, set the value of the propagateActivity attribute to false.
B.    In the diagnostic section, set the value of the propagateActivity attribute to true.
C.    Change the value of the switchValue attribute to Critical.
D.    Change value of the switchValue attribute to Error.

Answer: A

GreatExam is confident that our NEW UPDATED 70-513 exam questions and answers are changed with Microsoft Official Exam Center. If you cannot pass 70-513 exam, never mind, we will return your full money back! Visit GreatExam exam dumps collection website now and download 70-513 exam dumps instantly today!

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!!!]