单项选择题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?() For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features! 

A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.
B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.
C. Change the data type of CreditCardNumber from string to SecureString.
D. Implement the CreditCardNumber property getter and setter.


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service. You must ensure that the client application can interact with the WCF service. What should you do? ()

A. On the OperationContractAttribute, set the AsyncPattern property value to True.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
C. On the client, create a proxy derived from DuplexClientBase(Of TChannel).
D. On the client, use GetCallbackChannel(Of T).

3.单项选择题You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner.You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()

A. Add the WebInvoke(UriTemplate = "/Items/{id}",Method="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Replace the return type with RemovedActivityAction.

4.单项选择题Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized. What should you do?()

A. Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.
B. Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.
C. Set the Emit Default Value property of each data member to false.
D. Set the Is Required property of each data member to true.

最新试题

A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service. You must ensure that the client application can interact with the WCF service. What should you do? ()

题型:单项选择题

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?()For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features! 

题型:单项选择题

A WCF service code is implemented as follows. (Line numbers are included for reference only.) For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features! 01  02 03InstanceContextMode:=InstanceContextMode.Single)> 04Public Class CalculatorService 0506 07Public Function Calculate(ByVal op1 As Double, 08ByVal op As String, ByVal op2 As Double) As Double … 24End Function 2526End Class You need to increase the rate by which clients get the required response from the service. What are two possible ways to achieve this goal? ()

题型:多项选择题

You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.  Public Interface IOrderProcessing  Sub ApproveOrder(ByVal id As Integer)For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!End Interface You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?() 

题型:单项选择题

A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection. Function GetData() As String End Interface Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete. You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?()

题型:单项选择题

A Windows Communication Foundation (WCF) service exposes two operations: OpA and OpB. OpA needs to execute under the client’s identity, and OpB needs to execute under the service’s identity. You need to configure the service to run the operations under the correct identity. What should you do?()

题型:单项选择题

You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner.You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()

题型:单项选择题

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?() 

题型:单项选择题

Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized. What should you do?()

题型:单项选择题