You are developing an application that runs by using the cre

题目
单选题
You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.bool isAdmin=false;  WindowsBuiltInRole role=WindowsBuiltInRole.Administrator; ......  if(!isAdmin)          throw new Exception("User not permitted");   You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group. Which code segment should you use?()
A

A

B

B

C

C

D

D

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are using windows installer to deploy an application to 750 Windows 2000 Professional computers on your network. The network includes organizational unit (OU) named sales. A Group Policy object (GPO) is created for the Sales OU. You want to deploy that application in such a way that the shortcuts of that application should be created on the used desktop as well as in start-menu. When a user first click on the shortcut or try to open any file whose extension is associated with that application, then that application should automatically install on the computer. What should you do to accomplish this task?()

  • A、Using GPO, publish that application at user level
  • B、Using GPO, assign that application at the user level
  • C、Using GPO, publish that application at computer level
  • D、Using GPO, assign that application at the computer level.

正确答案:B

第2题:

You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()

  • A、Set the Debug attribute of the compilation node of the web.config file to true.
  • B、Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
  • C、Select the ASP.NET debugger option in the project properties.
  • D、Define the DEBUG constant in the project settings.

正确答案:A,C

第3题:

You are a network administrator for your company. All servers run Windows Server 2003. A server namedServer34 runs an application named App1.Users report that App1 is performing slowly. You suspect that an unauthorized application is installed on Server34.You run the netstat command and examine the output, as shown in the exhibit. (Click the Exhibit button.)You need to identify the unauthorized application by using the output from the netstat command.Which tool should you use to identify the application? ()

A. Performance console

B. System Monitor

C. Network Monitor

D. Task Manager


参考答案:D

第4题:

You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of  the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()

  • A、[Bindable(false)]
  • B、[DesignOnly(false)]
  • C、[EditorBrowsable(EditorBrowsableState.Never)]
  • D、[Browsable(false)]

正确答案:D

第5题:

Your company has a server that runs Windows Server 2008 R2.You have a new application that locates remote resources by name. The new application requires IPv6.You need to ensure that the application can locate remote resources by using IPv6. What should you do?()

  • A、CreateanewPointer(PTR)DNSrecord.
  • B、CreateanewQuad-A(AAAA)DNSrecord.
  • C、CreateanewSignature(SIG)DNSrecord.
  • D、CreateanewRouteThrough(RT)DNSrecord.

正确答案:B

第6题:

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.

正确答案:A

第7题:

You are installing an application on a computer that runs Windows Server 2008 R2.   During installation, the application will need to add new attributes and classes to the Active Directory  database.   You need to ensure that you can install the application.   What should you do()

  • A、Change the functional level of the forest to Windows Server 2008 R2.
  • B、Log on by using an account that has Server Operator rights.
  • C、Log on by using an account that has Schema Administrator rights and the appropriate rights to install  the application.
  • D、Log on by using an account that has the Enterprise Administrator rights and the appropriate rights to  install the application.

正确答案:C

第8题:

You are the administrator of a Windows Server 2003 computer named Testking1.An application on Testking1 gradually uses more and more memory until it causesTestking1 to stop responding. If you restart the application before it uses theavailable memory, there is no interruption of user services.You need to configure Testking1 to notify you when it encounters a low-memorycondition.What should you do?()

A. Using Task Scheduler, schedule a repeating task that runs the tracert command.

B. Using Performance Logs and Alerts, configure an alert for the appropriate performance object.

C. Using System Monitor, configure the appropriate performance object to display.

D. Using Startup and Recovery Settings, configure Testking1 to send an Administrative Alert.


参考答案:B

第9题:

You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application. You need to change the security context in which the service runs. The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server. You are required to set the Account property of the ServiceProcessInstaller class to specify the service account. What should you do?()

  • A、Use ServiceAccount.User.
  • B、Use ServiceAccount.LocalService.
  • C、Use ServiceAccount.LocalSystem.
  • D、Use ServceAccount.NetworkService.

正确答案:B

第10题:

You are installing an application on a computer that runs Windows Server 2008 R2. During  installation, the application will need to add new attributes and classes to the Active Directory  database.     You need to ensure that you can install the application.     What should you do()

  • A、Change the functional level of the forest to Windows Server 2008 R2.
  • B、Log on by using an account that has Server Operator rights.
  • C、Log on by using an account that has Schema Administrator rights and the appropriate rights to install the applicatio
  • D、Log on by using an account that has the Enterprise Administrator rights and the appropriate rights to install the app

正确答案:C

更多相关问题