PrepAway - Latest Free Exam Questions & Answers

What should you do?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
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.

B.
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.

C.
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.

D.
Add a DataProtectionPermission attribute to the each property and set the ProtectData
property to True.

Explanation:


Leave a Reply