[2016-New] 100% Pass 70-513 Exam By Training GreatExam New VCE And PDF Dumps (91-100)

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

100% Free Download! 100% Pass Guaranteed!

Good news, GreatExam has updated the 70-513 exam dumps. With all the questions and answers in your hands, you will pass the Microsoft 70-513 exam easily.

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

QUESTION 91
You are modifying a Windows Communication Foundation (WCF) service that provides access to report generation system.
The following code segment is part of your service contract. (Line numbers are included for reference only.)
Client applications are blocked while the service processes reports.
You need to ensure that the service methods are asynchronous.
What should you do?

911

A.    Insert the following code at line 04.
[OperationContract]
Insert the following code at line 07.
[OperationConcracc(AsyncPactern = true)]
B.    Insert the following code at line 04.
[OperationConcracc(AayncPaccern = true)]
C.    Insert the following code at line 04.
[OperotionConcroct(AsyncPactern = false)
Insert the following code at line 07.
[OperacionConcracc(AsyncPactern = true)]
D.    Insert the following code at line 04.
[OperationContract (AsyncPattern = false)]

Answer: B

QUESTION 92
You are developing a Windows Communication Foundation (WCF) service that contains the following code segment.
[ServiceContract]
public interface ICustomerService
{

}
public class CustomerService : ICustomerService
{

}
The service is self-hosted in a console application.
Older client applications access the service at http://contoso.com:8080/CustomerService/V1.
Newer client applications access the service at http://contoso.com:8080/CustomerService/V2.
You need to ensure that any client application can access the service at either address.
Which code segment should you use?

A.    Uri serviceAddress1 =
new Uri(“http://contoso.com:8080/CustomerService/V1″);
Uri serviceAddress2 =
new Uri(“http://contoso.com:8080/CustomerService/V2″);
ServiceHost host =
new ServiceHost(typeof(ICustomerService),
new Uri[]{ serviceAddress1, serviceAddress2 });
B.    Uri serviceAddress1 =
new Uri(“http://contoso.com:8080/CustomerService/V1″);
Uri serviceAddress2 =
new Uri(“http://contoso.com:8080/CustomerService/V2″);
ServiceHost host =
new ServiceHost(typeof(CustomerService),
new Uri[]{ serviceAddress1, serviceAddress2 });
C.    Uri serviceAddress =
new Uri(“http://contoso.com:8080/”);
ServiceHost host =
new ServiceHost(typeof(CustomerService),
new Uri[]{ serviceAddress });
host.AddServiceEndpoint(typeof(ICustomerService),
new BasicHttpBinding(), “CustomerService/V1”);
host.AddServiceEndpoint(typeof(ICustomerService),
new BasicHttpBinding(), “CustomerService/V2”);
D.    Uri serviceAddress =
new Uri(“http://contoso.com:8080/”);
ServiceHost host =
new ServiceHost(typeof(ICustomerService),
new Uri[] { serviceAddress });
host.AddServiceEndpoint(typeof(CustomerService),
new BasicHttpBinding(), “CustomerService/V1”);
host.AddServiceEndpoint(typeof(CustomerService),
new BasicHttpBinding(), “CustomerService/V2”);

Answer: C

QUESTION 93
You have a secured Windows Communication Foundation (WCF) service.
You need to track unsuccessful attempts to access the service.
What should you do?

A.    Set the authorizationManagerType attribute of the serviceAuthorization behavior to
Message
B.    Set the includeExceptionDetailslnFaults attribute of the serviceDebug behavior to true
C.    Set the Mode attribute of the security configuration element to Message
D.    Set the messageAuthenticationAuditLevel attribute of the serviceSecurityAudit behavior to
Failure.

Answer: D

QUESTION 94
A Windows Communication Foundation (WCF) service is deployed with netTcpBinding.
This service uses a duplex message exchange pattern.
You are developing the next version of the WCF service.
You discover that your company’s hardware load balancer performs correctly only for WCF services that use HTTP.
You need to ensure that your service works with the load balancer.
What should you do?

A.    Use basicHttpBinding.
B.    Create a custom binding that has the compositeDuplex, textMessageEncoding, and
namedPipeTransport binding elements in this order.
C.    Create a custom binding that has the compositeDuplex, textMessageEncoding, and
wsHttpTransport binding elements in this order.
D.    Use wsHttpBinding.

Answer: C

QUESTION 95
You are developing an application to update a users social status.
You need to consume the service using Windows Communication Foundation (WCF).
The client configuration is as follow.
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name=”SocialConfig”>
<security mode=”TransportCredentialOnly”>
<transport clientCredentialType=”Basic” realm=”Social API” />
</security>
</binding>
</webHttpBinding>
</bindings>
<client>
<endpoint address=”http://contoso.com” binding=”webHttpBinding”
bindingConfiguration=”SocialConfig”
contract=”ISocialStatus” name=”SocialClient” />
</client>
</system.serviceModel>
The service contract is defined as follows.
[ServiceContract]
public interface ISocialStatus
{
[OperationContract]
[WebInvoke(UriTemplate = “/statuses/update.xml?status={text}”)]
void UpdateStatus(string text);
}
Which code segment should you use to update the social status?

A.    using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(“SocialClient”))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
B.    using (ChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialStatus)))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
C.    using (ChannelFactory<ISocialStatus> factory =
new ChannelFactory<ISocialStatus>(“POST”))
{
factory.Credentials.Windows.ClientCredential.UserName = user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
D.    using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialClient)))
{
factory.Credentials.Windows.ClientCredential.UserName = user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}

Answer: A

QUESTION 96
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?
961

A.    CallbackBehavior ( ConcurrencyMode = ConcurrencyMode.Reentrant )
B.    CallbackBehavior ( ConcurrencyMode = ConcurrencyMode.Multiple )
C.    ServiceBehavior ( ConcurrencyMode = ConcurrencyMode.Reentrant )
D.    ServiceBehavior ( ConcurrencyMode = ConcurrencyMode.Multiple )

Answer: C

QUESTION 97
A WCF service code is implemented as follows. (Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(InstanceContextMode =
03 InstanceConcextMode.Single)]
04 public class CalculatorService
05 {
06 [OperacionContract]
07 public double Calculate(double opl, string op, double op2)
08 {

24 }
25 }
You need to decrease the response time of the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

A.    Change the service behavior to the following.
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode =
ConcurrencyMode.Multiple) ]
B.    Change the service behavior to the following.
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall) ]
C.    Require the clients use threads, the Parallel Task Library, or other mechanism to issue service
calls in parallel.
D.    Require the clients to use async operations when calling the service.

Answer: AB

QUESTION 98
You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service. (Line numbers are included for reference only.)
01 BasicHttpBinding myBinding = new BasicHttpBinding();
02 EndpointAddress myEndpointAddress = new EndpointAddress(“http://contoso.com/TaxService.svc”);
03 …
04 ITaxService client = channelFactory.CreateChannel();
05 string data = client.GetData(1);
You need to consume the service.
Which code segment should you insert at line 03?

A.    var channelFactory = new ChannelFactory<ITaxService>();
B.    var channelFactory = new ChannelFactory<ITaxService>(myBinding);
C.    var channelFactory = new ChannelFactory<ITaxService>(
myBinding, myEndpointAddress);
D.    var channelFactory = new ChannelFactory<ITaxService>(
http://contoso.com/TaxService.svc”);

Answer: C

QUESTION 99
You have a Windows Communication Foundation (WCF) service.
The service has issues with performance when it receives messages on a specific endpoint.
The service must collect the minimum number of performance counters to diagnose the message issues.
You need to configure the service.
In the web.config file for the service, what should you do?

A.    In the service configuration diagnostics section, set the value of the performancCounters
property to All.
B.    Enable the Windows Management Instrumentation (WMI) provider.
C.    In the service configuration diagnostics section, set the value of the performanceCounters
property to ServiceOnly.
D.    Enable message logging for the endpoint.

Answer: A

QUESTION 100
You are creating a Windows Communication Foundation (WCF) service.
You need to ensure that the service is compatible with ASP.NET to make use of the session state.
Which binding should you use?

A.    NetTcpContextBinding
B.    BasicHttpContextBinding
C.    NetTcpBinding
D.    NetMsmqBinding

Answer: B

Once there are some changes on 70-513 exam questions, we will update the study materials timely to make sure that our customer can download the latest edition.

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