网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
A Windows Communication Foundation (WCF) solution exposes the following service over a TCP binding.(Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] 03 public class DataAccessService 04 { 05 [OperationContract] 06 public void PutMessage(string message) 07 { 08 MessageDatabase.PutMessage(message); 09 } 10 [OperationContract] 11 pubic string[] SearchMessages(string search) 12 { 13 return MessageDatabase.SearchMessages(search); 14 } 15 } MessageDatabase supports a limited number of concurrent executions of its methods. You need to change the service to allow up to the maximum number of executions of the methods of MessageDatabase. This should be implemented without preventing customers from connecting to the service. What should you do?()
A
Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.Single)]
B
Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.PerSession)]
C
Add a throttling behavior to the service, and configure the maxConcurrentCalls.
D
Add a throttling behavior to the service, and configure the maxConcurrentSessions.
参考答案
参考解析
解析:
暂无解析
更多 “单选题A Windows Communication Foundation (WCF) solution exposes the following service over a TCP binding.(Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] 03 public class DataAccessService 04 { 05 [OperationContract] 06 public void PutMessage(string message) 07 { 08 MessageDatabase.PutMessage(message); 09 } 10 [OperationContract] 11 pubic string[] SearchMessages(string search) 12 { 13 return MessageDatabase.SearchMessages(search); 14 } 15 } MessageDatabase supports a limited number of concurrent executions of its methods. You need to change the service to allow up to the maximum number of executions of the methods of MessageDatabase. This should be implemented without preventing customers from connecting to the service. What should you do?()A Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.Single)]B Change the service behavior as follows. [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.PerSession)]C Add a throttling behavior to the service, and configure the maxConcurrentCalls.D Add a throttling behavior to the service, and configure the maxConcurrentSessions.” 相关考题
考题
You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()A.B.C.D.
考题
You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()A. Microsoft Internet Information Services (IIS) 6.0B. Windows Process Activation Services (WAS)C. A Windows Forms applicationD. A Windows Service
考题
You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a element defined. You need to ensure that all security audit information, trace logging, and message logging failures are recorded.Which configuration segment should you add to the element?()A.B.C.D.
考题
You are developing a Windows Communication Foundation (WCF) service.You must record all available information for the first 1,000 messages processed, even if they are malformed.You need to configure the message logging section of the configuration file.Which configuration segment should you use? ()A.B.C.D.
考题
A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()A. service Authentication ManagerB. service AuthorizationC. service CredentialsD. service Security Audit
考题
You are using Windows Communication Foundation (WCF) to create a service. You need to implement a custom message-level security binding element. Which binding element should you use?()
A. Transport Security Binding ElementB. Https Transport Binding ElementC. Ssl Stream Secunty Binding ElementD. Windows Stream Security Binding Element
考题
A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()
A. AnnouncementServiceB. AnnouncementClientC. DiscoveryClientD. HttpListener
考题
You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()
A. NetTcpContextBindingB. BasicHttpContextBindingC. NetTcpBindingD. NetMsmqBinding
考题
Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()A.B.C.D.
考题
You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()
A.B.C.D.
考题
A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection.[ServiceContract]public interface IDataService{ [OperationContract] string GetData();}Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete.You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?()A.B.C.Generate a proxy class with asynchronous methods and use it for the new clientsD. Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients.
考题
A Windows Communication Foundation (WCF) service implements the following contract. [ServiceContract] public interface IHelloService { [OperationContract(WebGet(UriTemplate="hello?name={name}"))]
A.B.C.D.
考题
You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()A、ChannelFactoryB、 ServiceHostC、ClientRuntimeD、CommunicationObject
考题
A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()A、AnnouncementServiceB、AnnouncementClientC、DiscoveryClientD、HttpListener
考题
A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()A、service Authentication ManagerB、service AuthorizationC、service CredentialsD、service Security Audit
考题
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode. The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)()A、Thread.CurrentPrincipal.Identity.NameB、HttpContext.Current.User.Identity.NameC、ServiceSecurityContext.Current.PrimaryIdentity.NameD、OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name
考题
A Windows Azure application includes a single-threaded worker role that has multiple instances. The worker role hosts a Windows Communication Foundation (WCF) service. Each request to the WCF service takes several seconds to complete. You need to recommend an approach for ensuring that worker role instances do not receive requests while processing. What should you recommend?()A、 Close the WCF endpoint.B、 Throw an exception to cancel the request.C、 Redirect incoming requests to a different worker role instance.D、 Remove the worker role instance from the load balancer rotation.
考题
A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()A、On the OperationContractAttribute, set the AsyncPattern property value to true.B、On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.C、On the client, create a proxy derived from DuplexClientBaseTChannel .D、On the client, use GetCallbackChannelT .
考题
You are using Windows Communication Foundation (WCF) to create a service. You need to implement a custom message-level security binding element. Which binding element should you use?()A、Transport Security Binding ElementB、Https Transport Binding ElementC、Ssl Stream Secunty Binding ElementD、Windows Stream Security Binding Element
考题
单选题You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? ()A
Microsoft Internet Information Services (IIS) 6.0B
Windows Process Activation Services (WAS)C
A Windows Forms applicationD
A Windows Service
考题
单选题You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()A
ChannelFactoryB
ServiceHostC
ClientRuntimeD
CommunicationObject
考题
单选题A Windows Communication Foundation (WCF) application exposes a service as a SOAP endpoint for consumption by cross-platform clients.During integration testing, you find that one of the clients is not generating the correct messages to the WCF application.In order to debug the issue and fix the communication, you need to configure the service to log messages received from the client.What should you do?()A
Set an etwTracking behavior on the service and configure a listener for the System.ServiceModel trace source.B
Set an etwTracking behavior on the service and configure a listener for the System.ServiceModel.MessageLogging trace source.C
Enable messageLogging in the System.ServiceModel diagnostics element configuration and configure a listener for the System.ServiceModel.MessageLogging trace source.D
Enable messageLogging in the System.ServiceModel diagnostics element configuration and configure a listener for the System.ServiceModel trace source.
考题
单选题Your company hosts web services in the company intranet. The intranet is secured by a firewall. Devices outside the firewall must be able to access the web services. Company policies prohibit changes to firewall rules. You need to recommend an approach for enabling inbound communication. What should you recommend?()A
Use Windows Server AppFabric.B
Use the Windows Azure AppFabric Service Bus.C
Use the Windows Azure AppFabric Access Control Service.D
Use a Windows Communication Foundation (WCF) service in a Windows Azure role that relays to the internal web service
考题
单选题You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP. You need to expose that contract over HTTP and TCP. What should you do?()A
Add a net.tcp base address to the host.B
Add an endpoint configured with a netTcpBinding.C
Add an endpoint behavior named netTcpBehavior to the existing endpoint.D
Add a binding configuration to the existing endpoint named netTcpBinding.
考题
单选题You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role. Custom code is necessary to initialize and configure the service endpoint. You need to recommend the point at which the application should initialize the WCF service. What should you recommend?()A
When Windows Azure initializes the worker role instance.B
When the worker role instance receives its first request.C
When the worker role instance instantiates the WCF service.D
When the worker role instance enters the main execution thread.
考题
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. This application will be part of a solution that contains a Windows Communication Foundation (WCF) service project. The Web application will be used to make calls to a service identified in theWCF service project. Management is planning to host the Web application on a separate serverfrom the WCF service. They want the WCF service to perform remotely. You need to add areference to the WCF service. What should you do?()A
You should add an assembly reference to the project.B
You should add a project reference to the project.C
You should add a Web reference to the project.D
You should add a service reference to the project.
考题
单选题You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()A
NetTcpContextBindingB
BasicHttpContextBindingC
NetTcpBindingD
NetMsmqBinding
考题
多选题A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode. The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)()AThread.CurrentPrincipal.Identity.NameBHttpContext.Current.User.Identity.NameCServiceSecurityContext.Current.PrimaryIdentity.NameDOperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name
热门标签
最新试卷