Microsoft
70-513 · Question #222
You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources. You need to ensure that the service accesses these resources on behalf of…
The correct answer is B. Set the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources. You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?
Options
- ASet the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to
- BSet the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to
- CSet the PrincipalPermissionAttribute on the service contract and update the binding attribute
- DSet the PnncipalPermissionAttribute on the service contract and update the
How the community answered
(17 responses)- A12% (2)
- B76% (13)
- C6% (1)
- D6% (1)
Community Discussion
No community discussion yet for this question.