nerdexam
Microsoft

70-513 · Question #187

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 { [DataMemberl ()>…

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 { [DataMemberl ()> 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

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    83% (25)
  • C
    3% (1)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice