70-513 · Question #122
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 {…
Sign in or unlock 70-513 to reveal the answer and full explanation for question #122. The question stem and answer options stay visible for context.
Question
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 string CodeName { get; set; } public string SecretHandshake { get; set; } } 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?
Options
- AAdd a MessageBodyMember attribute to the CodeName property and set the
- BAdd a DataProtectionPermission attribute to the each property and set the ProtectData
- CAdd an xmlText attribute to the CodeName property and set the DataType property to Signed.
- DAdd an ImmutableObject attribute to the CodeName property and set its value property to true.
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.