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

Question 6 
You are designing a SharePoint 2010 solution that allows users to enter address information for contacts into a  list named Address. You have the following requirements:
.Ensure that users enter full nine-digit zip codes for the address information.
.Display a custom message indicating that a zip code is invalid if the entered zip code does not match the full nine-digit requirements. You need to ensure that the application is designed to meet these requirements. Which approach should you recommend?
A. Create a custom command.
B. Create a Datasheet view on the Address list.
C. Use the Form Options of the Address list.
D. Create a formula on the column.

解析
   本题要求很简单:就是创建一个列表用来维护客户信息,其中有个邮编字段要求可以进行自动验证。
 在SharePoint 2010中,增强了列表的验证机制,我们可以定义自己的验证公式,根据其他列的值或一定的验证条件来验证某一列,非常简单实用。计算字段的 Microsoft SharePoint Foundation 公式基于 Microsoft Excel 函数和语法。但 Microsoft 仅支持该页上提及的那些函数用于 SharePoint Foundation 计算字段中。例如,Excel 函数 MID 不受支持。 有两种方式来添加验证,一种是在为列表创建列时为该列添加验证公式,另一种是在列表设置中为已有列添加验证公式。
   所以,本题的正确选项应该是D:即针对邮编字段创建验证公式。
   至于其它选项:
选项A. Create a custom command. 创建一个用户命令,这应该是针对Command窗口的环境执行的相关操作,与Sharepoint的用户界面操作环境无关。
选项B. Create a Datasheet view on the Address list. 这只是创建一个视图,无法解决某列字段的验证问题。
选项C. Use the Form Options of the Address list. 列表的”Form”是用来获取那些用来创建,编辑或者显示此列表相关的窗体对象的,与列表某字段的数据验证无关。

因此本题答案应该选 D
参考 
http://msdn.microsoft.com/zh-cn/library/bb862071(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ms434697(v=office.14).aspx


Question 7
You are designing a SharePoint 2010 solution that stores employee information in a list named Employees and company information in a list named Company. Each company has one or more employees. You need to recommend that a developer add a new column so that a one-to-many relationship is created between the Company list and Employees list. Which approach should you recommend?
A. Add an External Data column on the Employees list.
B. Add a Lookup column on the Employees list.
C. Add a Managed Metadata column on the Company list.
D. Add a Lookup column on the Company list.

解析:
  本题要求就是想在两个Sharepoint的列表(公司、雇员)之间建立一对多关系:在雇员列表中增加一个字段去引用公司列表的值。
  如果看了Question5中的描述我们就可以很快定位到与Lookup相关的选项,即选项B.D.再由于此新增字段是在雇员列表上的,所以排除选项D,保留选项B。
  至于其它选项:
选项A. Add an External Data column on the Employees list. 外部数据字段是针对不同于Sharepoint的外部数据源的(即: Oracle数据库,Excel数据源,其它应用程序产生的数据等等),使用BCS技术从外部数据源导入数据并建立的列表及字段。而本题的两个列表均是Sharepoint内部的列表,与外部数据无关。
选项C. Add a Managed Metadata column on the Company list. 这里提到的Managed Metadata Columns 常常是针对Sharepoint的搜索功能中的相关概念,是针对所有已经被配置为可以在搜索结果中进行优化过滤的托管元数据映射属性,只要配置“一切正常”的话,SharePoint会自动从搜索结果中找到这些托管元数据的属性,并且按照不同的来源字段,呈现出多种不同的属性过滤。所以它与建立查阅字段无关。

因此本题答案应该选B
参考 
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlookup.relationshipdeletebehavior(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ee559337(v=office.14).aspx


Question 8
You are using Business Connectivity Services to design a SharePoint 2010 application that connects to an external database. The database users have accounts for authentication that are different from their Active Directory accounts. You have a requirement to allow users to connect to the external database without prompting the user for credentials. You need to store user credentials and use these credentials when connecting to the external database. Which approach should you recommend?
A. Create a target application that uses the Microsoft Single Sign-On Service. Select the Connect with Impersonated Custom Identity option when creating the connection to the database.
B. Create a target application that uses the Secure Store Service. Select the Connect with Impersonated Custom Identity option when creating the connection to the database.
C.  Create a target application that uses the Single Sign-On Service. Select the Connect with User’s Identity option when creating the connection to the database.
D. Create a target application that uses the Secure Store Service. Select the Connect with User’s Identity option when creating the connection to the database.


解析:
   本题题意是你使用了BCS连接到外部数据库,在连接此数据库时所使用的合法帐户并不是你在Sharepoint环境中所使用的基于AD的用户帐户。你需要此连接访问是自动进行的,不需要提示Sharepoint环境中的当前用户输入需要登录到那个外部数据库时所必须的登录名与相关凭据。
   这是Sharepoint应用BCS的一个典型场景:如果使对外部数据源的访问更加顺畅,尤其是如果外部数据源需要身份确认时。
Sharepoint为此提供了Secure Store Service 存储和映射外部系统所需的用户凭据。Secure Store Service 取代了SharePoint 2007 单一登录功能。Secure Store Service 是提供凭据(例如帐户名称和密码)的存储和映射的共享服务。它使您能够安全地存储提供连接到外部系统所需凭据的数据,并将这些凭据与特定标识或一组标识相关联。解决方案会经常尝试向当前用户在其中被识别为不同用户或具有不同的身份验证帐户的外部系统进行身份验证。在这种情况下,Secure Store Service 可用于存储和映射外部系统所需的用户凭据。您可以配置 Secure Store Service,以便多个用户可以在外部系统上使用一组凭据来访问该外部系统。
例如,如果名为 Fred 的用户在运行 SharePoint Server 的服务器上有一个帐户,在 CRM 应用程序中有另一个帐户,则安全存储机制将允许该用户的 CRM 凭据与他的用户配置文件一起存储在 SharePoint Server 中。因此,如果他使用 SharePoint Server 中的 Microsoft Business Connectivity Services (BCS) 解决方案从 CRM 应用程序获取数据,SharePoint Server 将会查找服务器上的 Secure Store Service 数据库并将其凭据提供给 CRM。这样,Fred 就会自动登录到 CRM 应用程序,而不必单独登录到 CRM 应用程序。
有了上面的描述,我们就可以把焦点集中在选项B.D上,那么B和D又有什么区别呢?一个是使用模拟 Windows 标识(即: Impersonated Custom Identity)进行连接。另一个是使用用户标识(User’s Identity)进行连接。
我们继续看看使用 Secure Store Service 中的凭据是如何连接到外部系统的?
当创建某个外部内容类型时,您需要指定用户应用来连接到该外部内容类型所基于的外部数据源的身份验证模式。配合使用Secure Store Service与 Microsoft Business Connectivity Services (BCS) 时有以下三种类型的身份验证模式可用:
1. Windows 凭据(使用模拟 Windows 标识[Impersonated Custom Identity]进行连接):Microsoft SharePoint Server 2010 使用其默认Secure Store Service中的 Windows 凭据进行身份验证。示例:后端只向名为 domainstusers 的 Windows 组帐户授予访问权限,因此连接到此后端的属于此组成员的所有用户都可以使用 domainstusers 凭据来进行连接。
2. 凭据(使用模拟自定义标识[Impersonated Custom Identity]进行连接):在凭据模式中,针对类型数据库的外部系统,SharePoint Server 2010 使用其默认Secure Store Service中的数据库凭据进行身份验证。SharePoint Server 2010 将数据库凭据添加到连接字符串并将这些凭据传输到数据库服务器。示例:数据库只向名为 stdbuser 的非 Windows 帐户授予访问权限,因此连接到此后端的所有用户都需要使用 stdbuser 凭据。
3. 在适用于 Web 服务和 WCF 端点的凭据模式中,SharePoint Server 2010 使用不同于来自其默认Secure Store Service的 Windows 身份验证的凭据对 Web 服务和 WCF 端点进行身份验证。这些凭据用于进行基本身份验证或摘要式身份验证,具体取决于 Web 服务服务器的配置。由于基本身份验证和摘要式身份验证不足以保护凭据,因此应该使用 SSL 或 IPSec(或同时使用这两者)来保护 Web 服务服务器与运行 Business Data Connectivity (BDC) Service 的服务器之间的通信安全。
 所以,选项D,即使用用户标识(User’s Identity)进行连接就可以被排除了,事实在使用安全存储中的凭据创建新的外部内容类型时,在添加连接外部数据源的窗口中,有使用用户标识(User’s Identity)进行连接选项,且它是默认选项。如果你在外部数据库中为此用户标识单独建立了访问许可权限,你也可以使用它。但问题是如果此外部数据源是完全独立的(如本题:The database users have accounts for authentication that are different from their Active Directory accounts),那么就不能选择此选项了。

因此本题答案应该选B

参考 
http://msdn.microsoft.com/en-us/library/ee556780(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ee554863(v=office.14).aspx

原文地址:https://www.cnblogs.com/wsdj-ITtech/p/3169011.html