web analytics

[2016-New] GreatExam 70-513 Practice Questions Guarantee 70-513 Certification Exam 100% Success (211-220)

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

100% Free Download! 100% Pass Guaranteed!

How to pass 70-513 exam easily? Are you struggling for the 70-513 exam? Good news, GreatExam Microsoft technical experts have collected all the questions and answers which are updated to cover the knowledge points and enhance candidates’ abilities. We offer the latest 70-513 PDF and VCE dumps with new version VCE player for free download, and the new 70-513 practice test ensures your 70-513 exam 100% 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 211
You are debugging a Windows Communication Foundation (WCF) service.
The service uses signed and encrypted messages.
You need to configure logging so that you can read the contents of the messages.
What should you do?

A.    Set maxSizeMessagesToLog to 10
B.    Set logMessageAtServiceLevel to true.
C.    Set maxMessagesToLog to 10.
D.    Set logMessageAtTransportLevel to true.

Answer: B

QUESTION 212
Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders.
The service uses netMsmqBinding.
You find that processing every order in its own transaction is causing a delay.
You need to ensure that the service is configured to process multiple orders in one transaction.
What should you do?

A.    Use <serviceThrottling> service behavior and set the maxConcurrentCalls attribute.
B.    Use <transactedBatching> endpoint behavior and set the maxBatchSize attribute.
C.    Use <dispatcherSynchronizationBehavior> endpoint behavior and set the
maxPendingReceives attribute.
D.    Use <synchronousReceive> endpoint behavior.

Answer: B

QUESTION 213
You are developing an application to update a user s social status.
You need to consume the service using Windows Communication Foundation (WCF).
The client configuration is as follows.
<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.xmlstatus={text}”)>
Sub UpdateStatus(ByVal text As String)
End Interface
Which code segment should you use to update the social status?

A.    Using factory As WebChannelFactory(Of ISocialStatus) =
New WebChannelFactory(Of ISocialStatus)(“SocialClient”)
factory.Credentials.UserName.UserName = user.Name
factory.Credentials.UserName.Password = user.Password
Dim socialChannel As ISocialStatus = factory.CreateChannel()
socialChannel.UpdateStatus(newStatus)
End Using
B.    Using factory As ChannelFactory(Of ISocialStatus) =
New WebChannelFactory(Of ISocialStatus)(GetType(ISocialStatus))
factory.Credentials.UserName.UserName = user.Name
factory.Credentials.UserName.Password = user.Password
Dim socialChannel As ISocialStatus = factory.CreateChannel()
socialChannel.UpdateStatus(newStatus)
End Using
C.    Using factory As ChannelFactory(Of ISocialStatus) =
New ChannelFactory(Of ISocialStatus)(“POST”)
factory.Credentials.Windows.ClientCredential.UserName = user.Name
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt( 0, user.Password)
Dim socialChannel As ISocialStatus = factory.CreateChannel()
socialChannel.UpdateStatus(newStatus)
End Using
D.    Using factory As WebChannelFactory(Of ISocialStatus) =
New WebChannelFactory(Of ISocialStatus)(GetType(ISocialClient))
factory.Credentials.Windows.ClientCredential.UserName = user.Name
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt( 0, user.Password)
Dim socialChannel As ISocialStatus = factory.CreateChannel()
socialChannel.UpdateStatus(newStatus)
End Using

Answer: B

QUESTION 214
You are creating an ASP NET web application that hosts several Windows Communication Foundation (WCF) services the services have ASP.NET Compatibility Mode enabled.
Users authenticate with the Web application by using a cookie-based ASR NET Forms Authentication model.
You add a service tile named Authentication. svc that contains the following code segment:
<%@ SenviceHost Servicee”System
Web Application Services Authentication
Service”Factory=”System.Web.ApplicationServices.AppicationServicesHostFactory’ %>.
You need to ensure that users can access the WCF services without having to re- authenticate.
Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)

A.    In the system web.extensions/scripting/webServices/authenticationService element, set the
enabled attribute to true.
B.    In the system web.extensions/scripting/webServices/profileService element, set the enabled
attribute to true.
C.    Add a service endpoint with basicHttpBinding for the contract System.WebApplicationServices.
AuthenticationService.
D.    Add a custom service behavior named AuthenticationServiceTypeBehaviors with a
serviceAuthenticationManager element that has serviceAuthenticationManagerType set to
System Web Security. SQL Membership Provider

Answer: AC

QUESTION 215
You are creating a Windows Communication Foundation (WCF) service.
You have the following requirements:
– Messages must be sent over TCP
– The service must support transactions.
– Messages must be encoded using a binary encoding
– Messages must be secured using Windows stream-based security.
You need to implement a custom binding for the service.
In which order should the binding stack be configured?

A.    tcpTransport, windowsStreamSecurity, transactionFlow, binaryMessageEncoding
B.    transactionFlow, binaryMessageEncoding, windowsStreamSecurity, tcpTransport
C.    windowsStreamSecurity,  tcpTransport, binaryMessageEncoding, transactionFlow
D.    binaryMessageEncoding, transactionFlow, tcpTransport, windowsStreamSecurity

Answer: B

QUESTION 216
You are developing a Windows Communication Foundation (WCF) service.
One of the parameters used with the service operations is a security token.
The security token is not sensitive.
The monitoring software tracks security tokens and can read tokens in clear text only.
The company security policy requires that you validate all clear text data passed over the corporate network.
You need to ensure that the service verifies that the security token is not changed during transit.
What should you do?

A.    Implement IEndpointldentityProvider in the message contract class.
B.    For all the security-sensitive members, set the ProtectionLevel parameter of the
MessageBodyMember or MessageHeader attribute to EncryptAndSign.
C.    For all the security-sensitive members, set the ProtectionLevel parameter of the
MessageBodyMember or MessageHeader attribute to Sign.
D.    Implement ISecureConversationSession in the message contract class.

Answer: C

QUESTION 217
You are developing a data contract for a Windows Communication Foundation (WCF) service.
The data in the data contract must participate in round trips.
Strict schema validity is not required.
You need to ensure that the contract is forward-compatible and allows new data members to be added to it.
Which interface should you implement in the data contract class?

A.    ICommunicationObject
B.    IExtension<T>
C.    IExtensibleObject<T>
D.    IExtensibleDataObject

Answer: D

QUESTION 218
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.
You find that operations do not start until all previous operations have finished.
The service hosting code contains the following lines.
Dim service = New WarehouseService()
Dim hose = New ServiceHost(service)
You need to ensure that new operations do not wait for previous operations to finish.
Which attribute should you use to decorate the service?

A.    <ServiceBehavior(
InstanceContextMode:=InstanceContextMode.Single,
ConcurrencyMode:=ConcurrencyMode.Single) >
B.    <CallbackBehavior(
ConcurrencyMode:=ConcurrencyMode.Multiple)>
C.    <ServiceBehavior(
InstanceContextMode:=InstanceContextMode.Single,
ConcurrencyMode:=ConcurrencyMode.Reentrant)>
D.    <ServiceBehovior(
InstanceContextMode:=InstanceContextMode.Single,
ConcurrencyMode:=ConcurrencyMode.Multiple)>

Answer: D

QUESTION 219
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.
<ServiceContract() >
Public Interface IPaymentService
<OperationContract() >
Sub RecordPayments(ByVal person As Person)
End Interface
Public Class Person
End Class
Public Class Employee Inherits Person
End Class
Public Class Customer Inherits Person
End Class
You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.
What should you do?

A.    Add the following KnownType attribute to the Employee class and to the Customer class.
<KnownType(GetType(Person))>
B.    Implement the IExtensibleDataObject interface in the Person class.
C.    Implement the IExtension(Of T) interface in the Person class.
D.    Add the following KnownType attributes to the Person class.
<KnownType(GetType(Employee))>
<KnownType(GetType(Customer))>

Answer: D

QUESTION 220
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started.
The message is defined as follows.
<MessageContract()>
Public Class Agent
Public Property CodeName As String
Public Property SecretHandshake As String
End Class
You have the following requirements:
– The CodeName property must be sent in clear text.
– The service must be able to verify that the property value was not changed after being sent by the client.
– The SecretHandshake property must not be sent in clear text and must be readable by the service.
What should you do?

A.    Add a MessageBodyMember attribute to the CodeName property and set the
ProtectionLevel to Sign.
Add a MessageBodyMember attribute to the SecretHandshake property and set the
ProtectionLevel to EncryptAndSign.
B.    Add a DataProtectionPermission attribute to the each property and set the ProtectData
property to True.
C.    Add an XmlText attribute to the CodeName property and set the DataType property to
Signed. Add a PasswordPropertyText attribute to the SecretHandshake property and set its
value to True.
D.    Add an ImmutableObject attribute to the CodeName property and set its value property to
True. Add a Browsable attribute to the SecretHandshake property and set its value to False.

Answer: B

GreatExam Microsoft 70-513 exam dumps are audited by our certified subject matter experts and published authors for development. GreatExam Microsoft 70-513 exam dumps are one of the highest quality Microsoft 70-513 Q&As in the world. It covers nearly 96% real questions and answers, including the entire testing scope. GreatExam guarantees you pass Microsoft 70-513 exam at first attempt.

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