题目
You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.[ServiceContract]public interface IOrderProcessing { [OperationContract] void ApproveOrder(int id);}You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?()
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. Use the FindClaims method to locate a claimType named Role with a right named Manager
第1题
对话理解
听力原文:W: When I want to borrow money from a hank, what should I do?
M: You should create a contract with the bank, stipulating the rate of interest, the repayment date, the amount and timing of any periodic cash interest payments, and other terms of the agreement.
Q: Which is not mentioned when creating a contract with the bank?
(11)
A.Stipulating the rate of interest.
B.Stipulating the repayment date.
C.Stipulating the amount and timing of any periodic cash interest payments.
D.Stipulating the financial sponsor.
第2题
第3题
A.
B.
C.
D.
第4题
B.When creating info records
C.When creating a purchase order
D.When creating contracts
第5题
You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.Which code segment should you use?()
A.
B.
C.
D.
第6题
A.
B.
C.
D.
第7题
A.NetTcpContextBinding
B. BasicHttpContextBinding
C. NetTcpBinding
D. NetMsmqBinding
第8题
第9题
If you associate with such people, I‘ m afraid you ________serious trouble.
A.are heading for
B.are making
C.are avoiding
D.are creating
第10题
You are creating a Windows Communication Foundation (WCF) service that uses claims-based authorization. The following code retrieves the correct claim set.var claims = ServiceSecurityContext.Current.AuthorizationContext.ClaimSets[0];You need to validate that the requesting client application has included a valid DNS value in the claim.Which code segment should you use to retrieve the claim for validation?()
A. claims.FindClaims(ClaimTypes.Dns, Rights.PossessProperty).FirstOrDefault();
B. claims.FindClaims(ClaimTypes.Dns, Rights.Identity).FirstOrDefault();
C. claims.ContainsClaim(Claim.CreateDnsClaim(ClaimTypes.Dns));
D. claims.Equals(ClaimTypes.Dns);
第11题
A.
B.
C.
D.
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!