You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information.You define the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract(SessionMode = SessionMode.Required)] 02 public interface IFinancialService 03 { 04 [OperationContract] 05 string Login(int employeeID, string passwordHash); 06 07 [OperationContract] 08 double GetBonus(int month); 09 10 [OperationContract(IsTerminating = true)] 11 void Logout( ); 12 } Client application can invoke methods without logging in. You need to ensure that the client applications invoke Login before invoking any other method. You also need to ensure that client applications cannot consume the service after invoking Logout. Which two action should you perform? ()(Each correct answer presents part of the solution. Choose two.)。A、Replace line 04 with the following code. [OperationContract(IsInitiating = false)]B、Replace line 04 with the following code. [OperationContract(IsInitiating = true, IsTerminating = true)]C、Replace line 07 with the following code. [OperationContract(IsInitiating = false)]D、Replace line 10 with the following code. [OperationContract(IsInitiating = false, IsTerminating = true)]

You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information.You define the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract(SessionMode = SessionMode.Required)] 02 public interface IFinancialService 03 { 04 [OperationContract] 05 string Login(int employeeID, string passwordHash); 06 07 [OperationContract] 08 double GetBonus(int month); 09 10 [OperationContract(IsTerminating = true)] 11 void Logout( ); 12 } Client application can invoke methods without logging in. You need to ensure that the client applications invoke Login before invoking any other method. You also need to ensure that client applications cannot consume the service after invoking Logout. Which two action should you perform? ()(Each correct answer presents part of the solution. Choose two.)。

  • A、Replace line 04 with the following code. [OperationContract(IsInitiating = false)]
  • B、Replace line 04 with the following code. [OperationContract(IsInitiating = true, IsTerminating = true)]
  • C、Replace line 07 with the following code. [OperationContract(IsInitiating = false)]
  • D、Replace line 10 with the following code. [OperationContract(IsInitiating = false, IsTerminating = true)]

相关考题:

You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.What should you use? ()A. basicHttpBinding and HTTPB. basicHttpBinding and KerberosC. wsHttpBinding and KerberosD. wsHttpBinding and HTTPS

You develop a Windows Communication Foundation (WCF) service. You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS). You copy the assembly containing the service to the bin folder in the virtual directory path.You need to set up the URI that is mapped to the service.What should you do?()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 develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.The service must isolate session data to each user. You need to monitor the instancing behaviour used in the service.Which performance counter should you monitor?()A. ServiceModeService 4.0.0.0\CallsB. ServiceModeService 4.0.0.0\InstancesC. ASP.Net StateService \ Server Sessions ActiveD. ASP.Net StateService \ Server Sessions Total

You have an application that is incompatible with Windows Aero.You need to ensure that Windows Aero is automatically disabled when you run the application.What should you do?() A.AB.BC.CD.D

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

You perform a clean installation of Microsoft Windows Vista on the first partition. Then, you install Microsoft Windows XP Professional on the second partition of the same machine.You are able to log on to Windows XP Professional but do not have the option to boot to Windows Vista.You need to be able to dual boot the computer.What should you do?()A.AB.BC.CD.D

In order to()your goals, you must work hard.A、makeB、achieveC、requireD、develop

You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()  A、 Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.B、 Deploy the application in the Windows Azure Compute Emulator.C、 Deploy the application with a custom error page.D、 Deploy the application and then use IntelliTrace.

You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()A、 Use the ServiceBase class.B、 Use the ServiceInstaller class.C、 Use the ServiceManager class.D、 Use the ServiceController class.

You plan to deploy Windows 7 images. You need ensure that you can deploy images by using the WindowsPreinstallation Environment (Windows PE).  What should you do add to the Windows PE image?()A、Imagex.exeB、Loadstate.exeC、Mighost.exeD、Usmtutils.exe

You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()A、Override the OnPaint method.B、Write a code segment in the DrawNode event handler to specify the highlight color.C、Set the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.D、Set the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.

You have a computer that runs Windows Vista. You need to identify whether the computer can be upgradedto Windows 7.  Which tool should you use?()A、Windows Anytime Upgrade for Windows 7.B、Windows Anytime Upgrade for Windows Vista.C、Windows 7 Upgrade Advisor.D、Windows Vista Upgrade Advisor.

Windows NT 4.0 is currently on the system you are using, and you want to install Windows 2000 Professional. Windows NT 4.0 is currently on an NFTS partition.  For some reason you have decided that you are not going to upgrade, but rather, you are going to run this in a dual boot fashion.  What do you need to do? ()A、Can’t be done.B、You need to put Windows 2000 on a separate partition from Windows NT 4.0C、You need to put Windows 2000 on the same partition as Windows NT 4.0.D、You need to upgrade Windows NT 4.0 to SP4.

You have a computer that runs Windows 7 Professional. You need to upgrade the computer to Windows 7Ultimate. You must achieve this goal in the minimum amount of time.  What should you do?()A、Run Windows Update.B、Run Windows Anytime Upgrade.C、From the Windows 7 installation media, run Setup.exe.D、From the Windows 7 installation media, run Migwiz.exe.

You are designing a Windows 7 deployment image.   You receive a baseline image over the network, from a different geographic location.   You need to verify that the baseline image is valid.   Which tool should you use?()A、ImageXB、Windows Compatibility EvaluatorC、Windows System Image Manager (Windows SIM)D、the Deployment Image Servicing and Management (DISM) tool

单选题You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application that will connect to the Microsoft SQL Server 2005 database. You want to use Windows Authentication along with the Microsoft OLE DB provider. You now need to make sure that the OLE DB connection is as secure as possible.   What should you do?()A Add the following parameter to the connection string: Integrated Security=true; PersistSecurityInfo=true;B Add the following parameter to the connection string: Integrated Security=SSPI;C Add the following parameter to the connection string: Integrated Security=SSPI; PersistSecurityInfo=yes;D Add the following parameter to the connection string: Integrated Security=true;

单选题You are deploying a custom Windows 7 system image to a new computer. You perform the following tasks:.Start the new computer by using the Windows Preinstallation Environment (Windows PE) .Connect to ashared network location that contains the Windows 7 image file You need to apply the Windows 7 image tothe computer.  What should you do before you apply the image?()AMount the image.BConfigure Windows Firewall.CConfigure and format the hard disk drive.DInitialize the Boot Configuration Data (BCD) store.

单选题You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a custom control for the application.  The control will be a composite control.Your need to derive from the class that will create the control by using the minimum amount of development effort.What should you do?()ADerive from the Control class.BDerive from the UserControl class.CDerive from the FrameworkElement class.DDerive from the ContainerControl class.

多选题You have been asked to develop an application that uses only connection-oriented protocols. Which two protocols can you use?()APPPBUDPCTCPDICMP

单选题You develop a Windows Communication Foundation (WCF) service that interacts with Microsoft Message Queuing (MSMQ). The service requires sessions. You need to create a custom binding that enables messages sent to the queue to be viewed when you are using a listener tool. Which binding elements should you use?()AtextMessageEncoding and msmqTransport in this order.BtextMessageEncoding and msmqIntegrationTransport in this order.CmsmqTransport and textMessageEncoding in this order.DmsmqIntegrationTransport and textMessageEncoding in this order.

单选题You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled. What should you use? ()AbasicHttpBinding and HTTPBbasicHttpBinding and KerberosCwsHttpBinding and KerberosDwsHttpBinding and HTTPS

单选题You have a computer that runs Windows 7. You install Windows XP in a new partition on the computer anddiscover that you can no longer start Windows 7. You need to start Windows 7 in the minimum amount oftime.  What should you do?()AFrom Windows XP, modify the default path in the boot.ini file.BFrom Windows XP Recovery Console, run the Fixboot command.CStart the computer from the Windows 7 installation media and select Install now.DStart the computer from the Windows 7 installation media and run Startup Repair.

单选题Windows NT 4.0 is currently on the system you are using, and you want to install Windows 2000 Professional. Windows NT 4.0 is currently on an NFTS partition.  For some reason you have decided that you are not going to upgrade, but rather, you are going to run this in a dual boot fashion.  What do you need to do? ()ACan’t be done.BYou need to put Windows 2000 on a separate partition from Windows NT 4.0CYou need to put Windows 2000 on the same partition as Windows NT 4.0.DYou need to upgrade Windows NT 4.0 to SP4.

单选题You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()A Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.B Deploy the application in the Windows Azure Compute Emulator.C Deploy theapplication with a custom error page.D Deploy the application and then use IntelliTrace.

单选题You plan to deploy Windows 7 images. You need ensure that you can deploy images by using the WindowsPreinstallation Environment (Windows PE).  What should you do add to the Windows PE image?()AImagex.exeBLoadstate.exeCMighost.exeDUsmtutils.exe

单选题You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()AOverride the OnPaint method.BWrite a code segment to handle the CellPainting event.CWrite a code segment to handle the CellParsing event.DWrite a code segment to handle the RowPostPaint event.