Microsoft
70-513 · Question #136
You develop a Windows Communication Foundation (WCF) SOAP service that contains a class named Order. The Order class includes a field named secret that stores private data. The service has the…
The correct answer is A. Add a MessageBodyMember attribute to the secret field and set the ProtectionLevel to Sign. See the full explanation below for the reasoning.
Question
You develop a Windows Communication Foundation (WCF) SOAP service that contains a class named Order. The Order class includes a field named secret that stores private data. The service has the following requirements:
- The secret field must be encrypted.
- All other fields in the Order class must serialize as plain text.
You need to configure serialization for the Order class. What should you do?
Options
- AAdd a MessageBodyMember attribute to the secret field and set the ProtectionLevel to Sign.
- BAdd a MessageHeader attribute to the secret field and set the ProtectionLevel to Sign.
- CAdd a MessageHeader attribute to the secret field and set the ProtectionLevel to
- DAdd a MessageBodyMember attribute to the secret field and set the ProtectionLevel to
How the community answered
(42 responses)- A83% (35)
- B5% (2)
- C10% (4)
- D2% (1)
Community Discussion
No community discussion yet for this question.