Microsoft
70-513 · Question #317
A Windows Communication Foundation (WCF) client uses the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IService 03 { 04…
The correct answer is A. Set the ProtectionLevel property in line 01 to EncryptAndSign. See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) client uses the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IService 03 { 04 [OperationContract] 05 string Operation1(); 06 [OperationContract] 07 string Operation2(); 08 } You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed. What should you do?
Options
- ASet the ProtectionLevel property in line 01 to EncryptAndSign.
- BSet the ProtectionLevel property in line 04 and line 06 to Sign.
- CAdd a SecurityCriticalAttribute ror each operation.
- DAdd a SecunitySafeCriticalAttribute for each operation.
How the community answered
(43 responses)- A70% (30)
- B5% (2)
- C7% (3)
- D19% (8)
Community Discussion
No community discussion yet for this question.