Sharepoint学习笔记—习题系列--70-576习题解析 -(Q131-Q134)

Question  131
 You are designing multiple SharePoint 2010 features. You have the following requirements:
.There must be three features, named Feature_1, Feature_2, and Feature_3.
.Feature_1 must be dependent on Feature_2; Feature_2 must be dependent on Feature_3.
.Feature_1 must be available to a site collection named Finance.
You need to ensure that your feature design meets these requirements and follows the SharePoint Feature Activation Dependency Rules. Which approach should you recommend?
A. Design Feature_1 and Feature_2 as visible; design Feature_3 as a hidden feature. Set the scopes for Feature_1, Feature_2, and Feature_3 to Site.
B. Design Feature_1 and Feature_2 as visible; design Feature_3 as a hidden feature. Set the scopes for Feature_1 and Feature_2 to Site. Set the scope for Feature_3 to Web.
C. Design Feature_1 and Feature_2 as visible; design Feature_3 as a hidden feature. Set the scope for Feature_1 to Web Application. Set the scopes for Feature_2 and Feature_3 to Web.
D. Design Feature_1, Feature_2, and Feature_3 as visible features. Set the scopes for Feature_1 and Feature_2 to Site. Set the scope for Feature_3 to Web.php

解析:
 你须要按以下要求设计3个功能:
 要求1.三个功能分别为Feature_1, Feature_2, and Feature_3
 要求2. Feature_1 必须依赖于Feature_2; 而Feature_2 必须依赖于Feature_3.
要求3. Feature_1 必须可供名为Fiance的网站集使用。
 你该如何设计你的这些功能以知足相关要求以及功能之间的激活依赖规则呢?
 首先,根据要求2.3可知,Feature_1是网站集范围的功能,并且它依赖于Feature2,而Feature2依赖于Feature3。根据微软描述:” 若是所依赖的功能处于限制较严格的范围内,则不支持跨范围激活依赖关系。例如,网站集范围的功能对于网站范围的功能不会具备激活依赖关系。”,这就说明,Feature_1, Feature_2, and Feature_3都必须设置为网站集范围。
 全部备选项中只有选项A知足上述条件。安全

所以本题答案应该选  Aapp

参考 
http://msdn.microsoft.com/zh-cn/library/aa543162(v=office.12).aspx网站

 

Question  132
 You are planning to add more features to a SharePoint 2010 farm. Two developers are working independently in a developer environment; each has created a custom solution with a new feature. You have the following requirements:
.Each new feature that the developers created must share an assembly with an existing feature on the production farm.
.The new features must be deployed from the developer environment to the production environment.
.The possibility must be minimized that an existing application will be unavailable if the assembly needs to be redeployed after a bug fix.
.You must use the fewest solutions possible.
You need to create a deployment plan that meets these requirements. Which approach should you recommend?
A. Create one solution that combines the two new features with the existing feature and deploy the solution to the production farm.
B. Create two solutions to deploy the new features and extend the existing solution in the production farm to include the new features.
C. Create a solution for each of the two new features and extend one of the new solutions to include the feature in the other new solution. Then deploy both solutions to the production farm.
D. Create three independent solutions, each consisting of one feature and deploy them separately to the production farm.ui

解析:
  你打算向Sharepoint2010场中添加更多的功能, 有两名开发人员分别在开发环境中进行独立的开发,每人负责建立本身的解决方案以提供对应的功能,你须要知足以下要求:
  要求1.每一个由开发人员开发的新的功能必须能够在生产场内与已经存在的功能共享程序集。
  要求2.新开发的功能必需要从开发环境部署到生产环境
  要求3.当对一个已经存在的应用进行了修改并从新部署时,须要尽可能保证此应用的运行不会所以而中止。
  要求4.尽可能使用尽能够少的解决方案
  你该如何操做才能知足上述要求呢?
因为题干中说得很清楚: each has created a custom solution with a new feature(每人负责建立本身的解决方案以提供对应的功能)。因此固然是建立两个解决方案了(Create two solutions),仅有选项B.C符合此要求。但因为选项C是在一个解决方案中包含另外一个解决方案的Feature,而后再把两个Solution都部署到生产环境,这样在生产环境中就涉及两个解决方案,它要比选项B中仅扩充原解决方案涉及的方案个数多,结果要求4,因此选项B比选项C优。
  选项A.仅建立一个Solution显然不可能支持两个开发人员同时独立开发,因此排除。
  选项D.涉及的解决方案就更多了,因此排除。
所以本题答案应该选 B this

参考 
http://msdn.microsoft.com/zh-cn/library/ee471434.aspx
http://msdn.microsoft.com/zh-cn/library/ee256700.aspxspa

 


Question  133
 You are designing a solution package for an application project, which has several types of SharePoint 2010 artifacts. Your project contains a Web Part, features, list definitions, assemblies, customized ASPX pages, and workflows. You have the following requirements:
.You must ensure the security and manageability of the SharePoint applications.
.SharePoint administrators must enforce quota limits on resources consumed. Based on your analysis, the Web Part will exceed the limit.
.You must deploy all of the artifacts with the fewest solutions possible.
You need to create a deployment plan that meets these requirements. Which approach should you recommend?
A. Create one solution package that contains all of the artifacts in the development project.
B. Create two solution packages:
    .A farm-scoped solution that contains the Web Part
    .A solution that contains all the remaining artifacts in the project
C. Create two solution packages:
    .A sandboxed solution containing the Web Part
    .A solution that contains all the remaining artifacts in the project
D. Create three solution packages:
    .A solution for list definitions
    .A solution containing the Web Part and its related assemblies
    .A solution for customized ASPX pages and workflows设计

解析:
  你设计一个Sharepoint2010应用,包含Web Part,功能,列表定义,程序集,用户定义的ASPX页面以及工做流。此应用须要知足以下要求:
 要求1. 你须要确保此应用程序的安全性和易管理性。
 要求2. Sharepoint管理员能够控制此应用对资源的配额限制。若有必要,你的Web Part能够突破这些限制。
 要求3. 尽能够采用最少的解决方案来部署这些应用。
 你该如何操做以知足上述要求呢?
 选项A.全部的组成元素都包含在一个解决方案中。因为组成元素中有ASPX页面,若是仅有一个解决方案,则只能是场解决方案,这样就没法知足要求1和要求2,因此排除。
 选项B.本选项的实质是开发了两个场解决方案,彻底是画蛇添足,因此排除。
 选项C.把Web Part放到沙盒方案,其他放到场解决方案,符合本题的要求。
 选项D.总共使用了3个解决方案,且没有使用沙盒方案,从而没法知足控制此应用对资源的配额限制。并且list definitions与Aspx和Workflow的方案彻底能够合并,用不着一分二。因此本选项也被排除。
所以本题答案应该选 C three

参考 
http://msdn.microsoft.com/zh-cn/library/aa544500(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/vstudio/ee361616.aspxip

 


Question  134
 You are designing a SharePoint 2010 solution package that includes a feature. The feature should be available for activation in only those site collections contained within specified Web applications in the farm. You need to design your solution package to ensure this behavior. Which approach should you recommend?
A. Create a sandboxed solution and set the scope of the feature to Web Application.
B. Create a sandboxed solution and set the scope of the feature to Site.
C. Create a farm solution and set the Deployment Target property of the feature assembly to
GlobalAssemblCache.
D. Create a farm solution and set the Deployment Target property of the feature assembly to Web Application.

解析:
 你在一个Sharepoint2010解决方案中包括了一个功能,此功能只能在指定的Web Application内的网站集中被激活,你须要你所设计的解决方案包知足此须要。
  因为Sandbox解决方案都是针对网站集部署的,而本题则针对Web Application,因此能够直接排除选项A.B。
  选项C.功能的Scope属性只有Farm, Web Application,Site,Web等值,没有此选项所谓的GlobalAssemblCache设置,因此排除。而选项D则设置了正确的Scope值。

所以本题答案应该选 D

参考 
http://msdn.microsoft.com/en-us/library/ms436075.aspx
http://msdn.microsoft.com/zh-cn/library/ms476615(v=office.14).aspx
http://www.pritambaldota.com/index.php/understanding-features-and-feature-scope-in-sharepoint-2010/
http://msdn.microsoft.com/zh-cn/library/ms460318.aspx

相关文章
相关标签/搜索