You are developing an application that uses role-based secur

题目
单选题
You are developing an application that uses role-based security. The prinicipal policy of the application domain is configured during startup with the following code:AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);  You need to restrict access to one of the methods in your application so that only members of the local Administrators group can call the method. Which attribute should you place on the method?()
A

 [PrincipalPermission (SecurityAction.Demand, Name = @BUILTIN/Administrators)]

B

 [PrincipalPermission (SecurityAction.Demand, Role = @BUILTIN/Administrators)]

C

 [PrincipalPermission (SecurityAction.Assert, Name = @BUILTIN/Administrators)]

D

 [PrincipalPermission (SecurityAction.Assert, Role = @BUILTIN/Administrators)]

参考答案和解析
正确答案: B
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()

A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.

B. Click the Change button, and change the data provider for the selected data source.

C. Click the Advanced button, and change the Data Source property to the target provider.

D. Click the Advanced button, and change the Application Name property to the target provider.


参考答案:B

第2题:

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

第3题:

You are writing an application that uses isolated storage to store user preferences.The application uses multiple assemblies.Multiple users will use this application on the same computer.You need to create a directory named Preferences in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第4题:

Your company uses Microsoft Application Virtualization (App-V). You maintain the sequencing for applications. You need to add a template to an existing sequenced application. What should you do?()

  • A、Edit the application, add the template, and then save the application with a new name.
  • B、Sequence the template as a new application to the original application installation folder.
  • C、Restore the sequencing computer and add the template to the original application installation folder.
  • D、Upgrade the existing sequencing package, add the template to the package, and then save the application.

正确答案:D

第5题:

You are a database administrator for your company. The company uses a vendor company’s application that is based on a proprietary database. You query data from the application database and import the data into a SQL Server 2005 database. The application vendor provides you with a new OLE DB driver to be used when querying the application database. Company policy prohibits connections between the SQL Server database and the application database, except when querying this data. You need to provide a way to query data from the application database. What should you?()

  • A、Configure a Linked Server connection to the application database.
  • B、Write a query that uses an OPENDATASOURCE command.
  • C、Write a query that uses an OPENQUERY command.
  • D、Configure a Remote Server connection to the application database.

正确答案:B

第6题:

Your company uses Microsoft Application Virtualization (App-V).You maintain the sequencing for applications.You need to add a template to an existing sequenced application.What should you do?()

A.Edit the application, add the template, and then save the application with a new name.

B.Sequence the template as a new application to the original application installation folder.

C.Restore the sequencing computer and add the template to the original application installation folder.

D.Upgrade the existing sequencing package, add the template to the package, and then save the application.


参考答案:D

第7题:

You are developing an application that uses role-based security. The prinicipal policy of the application domain is configured during startup with the following code:AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);  You need to restrict access to one of the methods in your application so that only members of the local Administrators group can call the method. Which attribute should you place on the method?()

  • A、 [PrincipalPermission (SecurityAction.Demand, Name = @"BUILTIN/Administrators")]
  • B、 [PrincipalPermission (SecurityAction.Demand, Role = @"BUILTIN/Administrators")]
  • C、 [PrincipalPermission (SecurityAction.Assert, Name = @"BUILTIN/Administrators")]
  • D、 [PrincipalPermission (SecurityAction.Assert, Role = @"BUILTIN/Administrators")]

正确答案:B

第8题:

You are writing an application that uses SOAP to exchange data with other applications.You use a Department class that inherits from ArrayList to send objects to another application.The Department object is named dept.You need to ensure that the application serializes the Department object for transport by using SOAP.Which code should you use?()

A.

B.

C.

D.


参考答案:D

第9题:

You install a third-party application on your computer. The application uses port 80 to negotiate a listening port. After establishing the listening port, the application uses dynamic ports above 6000.  You need to configure Microsoft Windows Firewall to allow traffic for the application.  What should you do? ()

  • A、Add a port exception for port 80.
  • B、Disable the Core Networking exception.
  • C、Restore the Windows Firewall defaults.
  • D、Add a program exception for the new application.

正确答案:D

第10题:

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

更多相关问题