单选题You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0. What should you do?()AMake sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.BCreate a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the element. factory=MovieServiceFactoryCCreate a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. %@ServiceHost Service=MovieServiceHostFactory Language=C#DDecorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]

单选题
You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0. What should you do?()
A

Make sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.

B

Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the element. factory=MovieServiceFactory

C

Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. <%@ServiceHost Service=MovieServiceHostFactory Language=C#>

D

Decorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]


参考解析

解析: 暂无解析

相关考题:

You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft Internet Services (IIS) 7.0.The service must be hosted in an IIS application named Info. You need to enable this service to be hosted in IIS by changing the web.config file.Witch XML segment should you add to the web.config file?()A.B.C.D.

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 that does not operate on a duplex channel.You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.var service = new WarehouseService(); var host = new ServiceHost(service);You need to ensure that new operations do not wait for previous operations to finish.Which attribute should you use to decorate the service?()A. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]B. [CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]C. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Single)]D. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Reentrant)]

You have a server that runs windows server 2008 you need to configure the server as a VPN server. What should you install on the server?() A.Windows deployment Services role and deployment server role service.B.Windows deployment services role and deployment transport role service.C.Network policy and access services role and routing and remote access services role service.D.Network policy and access services and host credential authorization protocol role 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. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()A.B.C.D.

Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application.You need to configure DNS to include the following parameters for the custom application: Service Priority Weight Protocol Port number Host offering this service Which record should you create?()A. Host Info (HINFO)B. Service Location (SRV)C. Canonical Name (CNAME)D. Well-Known Service (WKS)

You perform an in-place upgrade on a Microsoft Windows XP Service Pack 2 (SP2) computer to Windows Vista.After the upgrade, you attempt to run a custom application. You receive the following error message: This application is only designed to run on Windows XP or later.”You need to run the application on Windows Vista.What should you do?()A.AB.BC.CD.D

Your company has a domain controller named Server1 that runs Windows Server 2008 and the DNS server role. A server named Server2 runs a custom application. You need to configure DNS to include the following parameters for the custom application: Service Priority Weight Protocol Port Number Host offering this service Which record should you create?()A、 Host Info (HINFO)B、 Service Locator (SRV)C、 Canonical Name (CNAME)D、 Well-Known Service (WKS)

A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the IDataAccess contract, which is defined in the MyApplication namespace. The service is implemented in a class named DataAccessService which implements the IDataAccess interface and also is defined in the MyApplication namespace. The hosting code is as follows. (Line numbers are included for reference only.) 01 static void Main(string[] args) 02 { 03 ServiceHost host; 04 ... 05 host.Open( ); 06 Console.ReadLine( ); 07 host.Close( ); 08 } You need to create a ServiceHost instance and assign it to the host variable. You also need to instantiate the service host.Which line of code should you insert at line 04?()A、host = new ServiceHost("MyApplication.DataAccessService");B、host = new ServiceHost("MyApplication.DataAccess");C、host = new ServiceHost(typeof(IDataAccess));D、host = new ServiceHost(typeof(DataAccessService));

You have an Active Directory Domain Services (AD DS) domain. All servers run Windows Server 2008 R2. The Remote Desktop Services (RDS) environment includes a Remote Desktop Session Host (RD Session Host) server in the LAN environment, and a Remote Desktop Gateway (RD Gateway) server in the perimeter network. You deploy a Remote Desktop Web Access (RD Web Access) server in the perimeter network. You publish a RemoteApp application. The RemoteApp application is not visible to users when they log in to RD Web Access.You need to ensure that authorized users can run RemoteApp applications from RD Web Access. What should you do?()A、Restart the World Wide Web Publishing Service on the RD Web Access server.B、Disab le Forms Authentication on the Default Web Site on the RD Web Access server.C、Allow Windows Management Instrumentation (WMI) communication between the RD Gateway server and the RD Session Host server.D、Allow Windows Management Instrumentation (WMI) commu nication between the RD Web Access server and the RD Session Host server.

Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application.You need to configure DNS to include the following parameters for the custom application: ˆService ˆPriority ˆ Weight ˆ Protocol ˆ Port number ˆHost offering this service Which record should you create?()A、Host Info (HINFO)B、Service Location (SRV)C、Canonical Name (CNAME)D、Well-Known Service (WKS)

You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0. What should you do?()A、Make sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.B、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the element. factory="MovieServiceFactory"C、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. %@ServiceHost Service="MovieServiceHostFactory" Language="C#"D、Decorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]

You have a server that runs windows server 2008 you need to configure the server as a VPN server. What should you install on the server?()A、Windows deployment Services role and deployment server role service.B、Windows deployment services role and deployment transport role service.C、Network policy and access services role and routing and remote access services role service.D、Network policy and access services and host credential authorization protocol role service.

Your company has an Active Directory Domain Services (AD DS) domain. You are installing the RD Session Host (RD Session Host) role service in Server Manager on a server that runs Windows Server 2008 R2. The Audio and video playback check box on the Configure Client Experience page is not available. You need to ensure that you can enable audio and video playback for users connecting to the RD Session Host server. Which two actions should you perform?()A、Start the Windows Audio service.B、Install the Desktop Experience feature.C、Install Connection Manager Administration Kit feature.D、Start the Windows Audio EndPoint Builder service.

You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit? ()A、FrameworkElementB、UIElementC、UserControlD、Button

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.

Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application. You need to configure DNS to include the following parameters for the custom application: ?¤Servic ?¤Priorit ?¤Weigh ?¤Protoco ?¤Port numbe ?¤Host offering this servic Which record should you create?()A、Host Info (HINFO)B、Service Location (SRV)C、Canonical Name (CNAME)D、Well-Known Service (WKS)

Your company has an Active Directory Domain Services (AD DS) domain. You install the Remote Desktop Session Host (RD Session Host) role service on a server that runs Windows Server 2008 R2. Client computers run Windows Vista and Windows 7. You need to automate the migration of user settings from client computers to the RD Session Host server. Which tool should you use?()A、Windows Easy TransferB、User State Migration Tool (USMT)C、Windows System Image Manager (Windows SIM)D、Deployment Image Servicing and Management (DISM)

You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.var service = new WarehouseService( ); var host = new ServiceHost(service);You need to ensure that new operations do not wait for previous operations to finish. Which attribute should you use to decorate the service?()A、[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]B、[CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]C、[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Single)]D、[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Reentrant)]

单选题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? ()AMicrosoft Internet Information Services (IIS) 6.0BWindows Process Activation Services (WAS)CA Windows Forms applicationDA Windows Service

单选题A Windows Communication Foundation (WCF) service is deployed with netTcpBinding. This service uses a duplex message exchange pattern.You are developing the next version of the WCF service. You discover that your company's hardware load balancer performs correctly only for WCF services that use HTTP. You need to ensure that your service works with the load balancer. What should you do?()AUse basicHttpBinding.BCreate a custom binding that has the compositeDuplex, textMessageEncoding, and namedPipeTransport binding elements in this order.CCreate a custom binding that has the compositeDuplex, textMessageEncoding, and wsHttpTransport binding elements in this order.DUse wsHttpBinding.

单选题Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application.You need to configure DNS to include the following parameters for the custom application: ˆService ˆPriority ˆ Weight ˆ Protocol ˆ Port number ˆHost offering this service Which record should you create?()AHost Info (HINFO)BService Location (SRV)CCanonical Name (CNAME)DWell-Known Service (WKS)

单选题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.

单选题Your company has a domain controller named Server1 that runs Windows Server 2008 R2 and the DNS Server server role. A server named Server2 runs a custom application. You need to configure DNS to include the following parameters for the custom application: ?¤Servic ?¤Priorit ?¤Weigh ?¤Protoco ?¤Port numbe ?¤Host offering this servic Which record should you create?()AHost Info (HINFO)BService Location (SRV)CCanonical Name (CNAME)DWell-Known Service (WKS)

单选题You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer. This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application: public class EnumerateService : ServiceBase { public static EnumerateService () { this.ServiceName = "Enumerate Service"; this.CanStop = true; } protected override void OnStart (string[] args) { // Enumerate all services and initialize the FileSystemWatcher } protected override void OnStop () { // Stop the FileSystemWatcher and perform cleanup } public static void Main () { EnumerateService service = new EnumerateService(); } } You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?()A Override the OnBoot method instead of the OnStart method.B Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Service.Run ();C Override the OnLoad method instead of the OnStart method.D Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Run (service);

单选题You are designing a Windows Azure web application.   The application must integrate with on-premise business services.   The business services are running on an on-premise server and cannot be rewritten. The business services are not exposed externally.   You need to recommend an approach for accessing the business services.  What should you recommend?()A Move business service functionality to Windows Azure.B Connect to the on-premise server from a custom service in Windows Azure.C Create a VPN connection between the application and the on-premise server.D Expose the business services to the Windows Azure AppFabricService Bus by using a custom service that configures relay binding.