web analytics

[2016-New] Free GreatExam Microsoft 70-513 PDF Dumps With New Update Exam Questions (181-190)

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

100% Free Download! 100% Pass Guaranteed!

We never believe in second chances and GreatExam brings you the best 70-513 Exam Preparation Materials which will make you pass in the first attempt. We guarantee all questions and answers in our 70-513 Dumps are the latest released, we check all exam dumps questions from time to time according to Microsoft Official Center, in order to guarantee you can read the latest 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 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 new released 70-513 dumps PDF are now for free download, download It right now and pass your exam 100%.

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