nerdexam
Microsoft

70-513 · Question #224

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 Order class includes…

The correct answer is D. Add a MessageHeader attribute to the secret field and set the ProtectionLevel to. 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 Order class includes the following code:

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 MessageHeader attribute to the secret field and set the ProtectionLevel to Sign.
  • BAdd a MessageBodyMember attribute to the secret field and set the ProtectionLevel to Sign.
  • CAdd a MessageBodyMember attribute to the secret field and set the ProtectionLevel to
  • DAdd a MessageHeader attribute to the secret field and set the ProtectionLevel to

How the community answered

(41 responses)
  • A
    12% (5)
  • B
    2% (1)
  • C
    5% (2)
  • D
    80% (33)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice