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