单项选择题
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?()
A.
B.
C.
D.
相关考题
-
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsthefollowingservicecontract.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()</servicecontract()
A. In the method body, check the Rights.PosessesProperty property to see if it contains manager.
B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager.
C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.
D. In the method body, create a new instance of WindowsClaimSet. -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatacceptsmessagesfromclientswhentheyarestarted.Themessageisdefinedasfollows.[MessageContract]publicclassAgent{publicstringCodeName{get;set;}publicstringSecretHandshake{get;set;}}Youhavethefollowingrequirements:"TheCodeNamepropertymustbesentincleartext.Theservicemustbeabletoverifythatthepropertyvaluewasnotchangedafterbeingsentbytheclient."TheSecretHandshakepropertymustnotbesentincleartextandmustbereadablebytheservice.Whatshouldyoudo?()
A. Add a MessageBodyMember attribute to the CodeName property and set the ProtectionLevel to Sign. Add a MessageBodyMember attribute to the SecretHandshake property and set the protectionLevel to EncryptAndSign.
B. Add a DataProtectionPermission attribute to the each property and set the ProtectData property to true.
C. Add an XmlText attribute to the CodeName property and set the DataType property to Signed. add a PasswordPropertyText attribute to the SecretHandshake property and set its value to true.
D. Add an ImmutableObject attribute to the CodeName property and set its value property to true. Add a Browsable attribute to the SecretHandshake property and set its value to false. -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicetoprocessorders.Thedatacontractfortheorderisdefinedasfollows.[DataContract]publicclassOrder{ [DataMember]publicstringCardHolderName{get;set;[DataMember]publicstringCreditCardNumber{get;set;}}Youhavethefollowingrequirements: "EnablethetransmissionofthecontentsofOrderfromtheclientstotheservice."EnsurethatthecontentsofCreditCardNumberarenotsentacrossthenetworkincleartext."EnsurethatthecontentsofCreditCardNumberareaccessiblebytheservicetoprocesstheorder.Youneedtoimplementtheservicetomeettheserequirements.Whatshouldyoudo?() Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!
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.
