当前位置:MCPD(70-536)题库

问题:

[单选] 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")]

You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable. You need to enable members to manage their lists of users. Which code segment should you use? () Roles.CreateRole(listName);User.InInRole(listName);。 Roles.CreateRole(listName);Roles.AddUserToRole(useName, listName);。 Roles.RoleExists(listName);Roles.AddUserToRole(useName, listName);。 Roles.RoleExists(listName);User.InInRole(listName)。 阻塞高压 简要说明什么是信息系统,其典型的数据处理有哪些? 在信用证业务中,信用证的开立是以买卖合同为基础的,因此,信用证条款与买卖合同条款严格相符是开征行向受益人承担付款责任的前提条件。 Your corporate network has a member server named RAS1 that runs Windows Server 2008 R2. You configure RAS1 to use the Routing and Remote Access Services (RRAS).The companys remote access policy allows members of the Domain Users group to dial in to RAS1. The company issues smart cards to all employees.You need to ensure that smart card users are able to connect to RAS1 by using a dial-up connection.What should you do?() Install the Network Policy Server (NPS) server role on RAS1.。 Create a remote access policy that requires users to authenticate by using SPAP.。 Create a remote access policy that requires users to authenticate by using EAP-TLS.。 Create a remote access policy that requires users to authenticate by using MS-CHAP v2.。 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?()
参考答案:

  参考解析

本题暂无解析

在线 客服