nerdexam
Microsoft

70-513 · Question #12

You are creating a Windows Communication Foundation (WCF) service to process orders. The data contract for the order is defined as follows: [DataContract] public class Order { [DataMember] public…

The correct answer is B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to. See the full explanation below for the reasoning.

Question

You are creating a Windows Communication Foundation (WCF) service to process orders. The data contract for the order is defined as follows:

[DataContract] public class Order { [DataMember] public string CardHolderName { get; set; } [DataMember] public string CreditCardNumber { get; set; } } You have the following requirements:

  • Enable the transmission of the contents of Order from the clients to

the service.

  • Ensure that the contents of CreditCardNumber are not sent across the

network in clear text.

  • Ensure that the contents of CreditCardNumber are accessible by the

Service to process the order. You need to implement the service to meet these requirements. What should you do?

Options

  • AAdd a DataProtectionPermission attribute to the CreditCardNumber property and set the
  • BConvert the DataContract to a MessageContract and set the ProtectionLevel property to
  • CChange the data type of CreditCardNumber from string to SecureString.
  • DImplement the CreditCardNumber property getter and setter In the setter, run the value of the

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    80% (39)
  • C
    10% (5)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice