听力原文:本人欲寻一位25岁以下、性格温柔、端庄大方的城市姑娘为伴。问:这是一则什么启事?(9)A.寻
听力原文:本人欲寻一位25岁以下、性格温柔、端庄大方的城市姑娘为伴。
问:这是一则什么启事?
(9)
A.寻人启事
B.招聘启事
C.征婚启事
D.寻友启事
听力原文:本人欲寻一位25岁以下、性格温柔、端庄大方的城市姑娘为伴。
问:这是一则什么启事?
(9)
A.寻人启事
B.招聘启事
C.征婚启事
D.寻友启事
第1题
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.
第2题
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);
第3题
A.NetTcpContextBinding
B. BasicHttpContextBinding
C. NetTcpBinding
D. NetMsmqBinding
第4题
You are creating a Windows Communication Foundation (WCF) service. You have the following requirements: Messages must be sent over TCP The service must support transactions. Messages must be encoded using a binary encoding Messages must be secured using Windows stream-based security.You need to implement a custom binding for the service. In which order should the binding stack be configured?()
A. tcp Transport, windows Stream Security, transaction Flow, binary Message Encoding
B. transaction Flow, binary Message Encoding, windows Stream Security, tcp Transport
C. windows Stream Security, tcp Transport, binary Message Encoding, transaction Flow
D. binary Message Encoding, transaction Flow, tcp Transport, windows Stream Security
第5题
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: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 atribute to the operation
C. Replace the string parameter with a RemovedActivityAction parameter
D. Replace the return type with RemovedActivityAction.
第6题
You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding. New audit requirements dictate that callers must be authenticated on every call to ensure that their credentials have not been revoked.You need to ensure that the service will not cache the security request token. What should you do?()
A. Apply a ServiceBehavior attribute to the service implementation class with the lnstanceContextMode property set to Single.
B. In the message security configuration, change clientCredentialType from lssuedToken to UserName
C. In the message security configuration, set establishSecurityContext to false.
D. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.
第7题
You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property. You need to ensure that client applications can communicate with the service and discover changes to the service endpoints.What should you do?()
A. Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.
B. Add a new AnnouncementClient to the Behaviors collection in the client application.
C. Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.
D. Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the client application.
第8题
You are creating a Windows Communication Foundation (WCF) service that accepts claims-based tokens. You need to ensure that the service can use claims from trading partners even though there are variations on naming for the same elements.Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)()
A. Register a custom Service Authorization Manager that implements Check Access. In this method, use System.Convert.ChangeType to transform the incoming claim set to a WindowsClaimSet type.
B. Apply a PrincipalPermission attribute on the operation with the required claims listed in the Roles property.
C. Within the operation, verify the presence of the required claims in the current AuthorizationContext.
D. Register an AuthorizationPolicy that maps external claims to an internal ClaimSet.
第9题
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
第10题
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?()
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 In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!