[2016-New] GreatExam Latest 70-513 VCE Guarantee 100% Pass 70-513 (311-320)

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

100% Free Download! 100% Pass Guaranteed!

How to 100% pass 70-513 exam? GreatExam provides the guaranteed 70-513 exam preparation material to boost up your confidence in 70-513 exam. Successful candidates have provided their reviews about our 70-513 dumps. Now GreatExam supplying the new version of 70-513 VCE and PDF dumps. We ensure our 70-513 exam questions are the most complete and authoritative compared with others’, which will ensure your 70-513 exam pass.

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

QUESTION 311
You have a self-hosted Windows Communication Foundation (WCF) service.
You need to configure the service to provide an X.509 certificate during authentication
What should you use to configure the service?

A.    the Certificate property of the X509CertificatelnitiatorServiceCredential class
B.    the SetCertificate method of the X509CertificatelnitiatorServiceCredential class
C.    the SetCertificate method of the X5O9CertificateRecipientServiceCredential class
D.    the TrustedStoreLocation property of the X5O9CertificateRecipientServiceCredential class

Answer: C

QUESTION 313
You are integrating a Windows Communication Foundation (WCF) service within an enterprise wide Service Oriented Architecture (SOA).
Your service has the following service contract:
[ServiceContract]
public class CreditCardConfirmationService
{
    [OperationContract]
    boolean ConfirmCreditCard(string ccNumber);
    double OrderAmount(int orderNumber);
}
You need to allow the code in the ConfirmCreditCard method to participate automatically in existing transactions.
If there is no existing transaction, a new transaction must be created automatically.
What should you do?

A.    Inside the ConfirmCreditCard method, surround the code that must participate in the
transaction with a using(new TransactionScope()) block.
B.    Inside the ConfirmCreditCard method, surround the code that must participate in the
transaction with a using(new CommittableTransaction()) block.
C.    Add an [OperationBehavior(TransactionScopeRequired=true)] attribute to the
ConfirmCreditCard method.
D.    Add an [OperationBehavior(TransactionAutoComplete=true)] attribute to the
ConfirmCreditCard method.

Answer: C

QUESTION 314
A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.
You need to implement a client that logs these notifications.
Which class should you use?

A.    AnnouncementService
B.    AnnouncementClient
C.    DiscoveryClient
D.    HttpListener

Answer: A

QUESTION 315
You are developing a client that sends several types of SOP messages to a Windows Communication Foundation (WCF) service method named PostData PostData is currently defined as follows:
[OperationContract?
void PostData(Order data);
You need to modify PostData so that it can receive any SO6P message
which code segment should you use?

A.    [OperaionContract0sOneWay true, Action = `v’,
ReplyAction void PostData(Order data);
B.    (OperationContract(1sOneWay = true, Action “v’,
ReplyAction = “.`) addPostData(BodyWriterdata);
C.    [OperaionContract] void PostDaa(BodyWriter data);
D.    [OperationContract] void PostDaa(Message data);

Answer: D

QUESTION 316
A Windows Communication Foundation (WCF) client and service share the following service contract interface.
[ServiceContract]
public interface IContosoService {
[OperationContract]
void SavePerson(Person person);
}
They also use the following binding.
NetTcpBinding binding new NetTcpBinding { TransactionFlow = true };
The client calls the service with the following code
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{ IContosoService client = factoryCreateChannelO;
client SavePerson(person);
ConsoleWriteLine(
TransactionCurrentTransactionlnformation.
Distributedldentifier);
tsCompleteO;
}
The service has the following implementation for SavePerson
public void IContosoService SavePerson(Person person)
{ person.Saveo;
ConsoleWriteLine(TransactionCurrentTransactionlnformation.
Distributedidentifier);
}
The distributed identifiers do not match on the client and the server
You need to ensure that the client and server enlist in the same distributed transaction
What should you do?

A.    Add the following attributes to the SavePerson operation on IContosoService.
[OperationBehavior(TransactionScope.Required = true)]
[TransactionFlow(TransactionFlowOption.Mandatory)]
B.    Add the following attributes to the SavePerson operation on lContosoService
[TransactionFlow(TransactionFlowOption.Mandatory)]
[OperationBehavior(TransactionScope.Required = true)]
C.    Add the following attribute to the SavePerson operation on lContosoService
[OperationBehavior(TransactionScope.Required = true)]
Add the following attribute to the implementation of SavePerson.
[TransactionFlow(TransactionFlowOption.Allowed)]
D.    Add the following attribute to the SavePerson operation on lContosoService
[TransactionFlow(TransactionFlowOption.Allowed)]
Add the following attribute to the implementation of SavePerson.
[OperationBehavior(TransactionScope.Required = true)]

Answer: D

QUESTION 317
A Windows Communication Foundation (WCF) client uses the following service contract. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IService
03 {
04     [OperationContract]
05     string Operation1();
06     [OperationContract]
07     string Operation2();
08 }
You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed.
What should you do?

A.    Set the ProtectionLevel property in line 01 to EncryptAndSign.
B.    Set the ProtectionLevel property in line 04 and line 06 to Sign.
C.    Add a SecurityCriticalAttribute ror each operation.
D.    Add a SecunitySafeCriticalAttribute for each operation.

Answer: A

QUESTION 318
You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner.
You need to add a delete operation.
You implement the delete method as follows:
void DeleteItems(string id);
You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation.
What should you do?

A.    Add the WebInvoke(UriTemplate=”/Items/{id}”, Method=”DELETE”)
attribute to the operation
B.    Add the HttpDelete atribute to the operation
C.    Replace the string parameter with a RemovedActivityAction parameter
D.    Replace the return type with RemovedActivityAction.

Answer: A

QUESTION 319
A WCF service code is implemented as follows. (Line numbers are included for reference only)
01 [ServiceContract]
02 [ServiceBehavior(lnstanceContextMode =
03 lnstanceContextModeSingle)]
04 public class CalculatorService
05 {
06 [OperationContract]
07 public double Calculate(double op1, string op. double op2)
08 {
24 }
25 }
You need to increase the rate by which clients get the required response from the service.
What e two possible ways to achieve this goal? (Each correct answer presents a complete sokiion 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 senvice.

Answer: AB

QUESTION 320
You are developing a windows Communication Foundation (WCF) service that will be hosted in Microsoft Intemnet Information Services (IIS) 7.0.
The service must be hosted in an lIs application named Info.
You need to enable this senvice to be hosted in llS by changing the web.config file
Which XML segment should you add to the web.config file?
3201

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: B

The Microsoft 70-513 questions and answers from GreatExam are the most reliable guide for Microsoft exam. We offer the latest 70-513 PDF and VCE dumps with new version VCE player for free download, and the newest 70-513 practice test ensures your exam 100% pass. A large number of successful candidates have shown a lot of faith in our 70-513 exam dumps. If you want pass the Microsoft 70-513 exam, please choose GreatExam.

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