Sharepoint学习笔记—习题系列--70-576习题解析 -(Q105-Q108)
Question 105
You are designing a SharePoint 2010 application that contains a single list named User Data. You need to design the application to meet these requirements:
.The application must have a drop-down menu that contains key-value pair data.
.The data in the drop-down menu must be retrieved from a Microsoft SQL Server 2008 table.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Create a new list that links to the external SQL Server table.
B. Create a new list that has an external data column. Set the source of this column to the external SQL Server table.
C. Create a managed metadata column on the User Data list. Add the data from the SQL Server table to this column.
D. Create a lookup column on the User Data list that gets its information from an external list.
解析:
你在开发一个Sharepoint2010应用程序, 此程序用到了一个名为User Data的列表,你的程序需要满足如下要求:
要求1.程序必须有一个下拉菜单,此菜单包含了键-值对数据。
要求2. 上面提到的键-值对数据必须来自于一个Microsoft SQL Server 2008数据表。
你应该推荐备选项中的哪两个选项呢?
由于本题要求有下拉菜单(其实就是列表中的LookUp列实现),且为两个选项,所以可以排除选项B.因为选项B通过建立一个External Data Column列引入了外部SQL数据,但此方法无法进一步基于此Column实现下拉菜单效果。选项C.在列表的某一列上使用托管元数据,此方式虽可以实现类似于下拉菜单的效果,但问题是此托管元数据列的内容不是由SQL Server添加到此列的。在SharePoint 2010中,提供了Managed Metadata Service,它是一个服务应用程序,能为整个服务器场,甚至整个企业(通过将一个服务器场的Managed Metadata Service发布出去),提供一个集中的Metadata存储和管理中心。我们就在基于此服务来集中的建立与配置托管元数据的。所以选项C也被排除。
选项A.D,先是创建一个列表,此列表中引入SQL数据,然后再在User Data的列表中建立LookUp列引用前面的那个列表数据,从而实现下拉菜单效果。
因此本题答案应该选 A.D
参考
http://technet.microsoft.com/zh-cn/library/ee530389.aspx
http://www.360sps.com/Item/OMCreateLookupField.aspx
Question 106
You are designing a SharePoint 2010 application. You need to design a list that displays only data from contacts stored in Microsoft Office Outlook 2010. Which approach should you recommend?
A. Create a list with an external data column. Set the External Content Type of this column.
B. Create an external list. Create an external content type based on the external list and set the Office Item Type.
C. Create an external content type and set the Office Item Type. Create an external list from the external content type.
D. Export the contact list in Outlook 2010. Create a new external list based on the exported data file.
解析:
你设计了一个Sharepoint2010应用程序,实现在一个列表中显示且仅显示从Microsoft Office Outlook 2010中获取到的客户联系信息。该如何实现呢?
先来看看Sharepoint外部内容类型的相关知识点:
Microsoft Business Connectivity Services (BCS) 的核心概念是外部内容类型。外部内容类型可在 Business Connectivity Services 提供的功能和服务中使用,它们是对连接信息和数据定义以及要应用于特定类别的外部数据的行为的可重用的元数据说明。利用外部内容类型,您可从中央位置管理和重用业务实体(例如,Customer 或 Order)的元数据和行为,使用户能够与外部数据进行交互并按更有意义的方式进行处理。
例如,假定一个业务实体,如 Customer。您可能需要与 SharePoint 列表中的 Customer 类型的项进行交互,或在 Microsoft Outlook 中脱机使用这些项。或者,您可能需要使用户能够从 Microsoft Word 中 Orders 合同文档中的客户列表选取客户。只需创建一次外部内容类型便可在所需位置重用它。
外部内容类型提供了以下好处(我们只列与OutLook相关的):
.提供内置 Office 和 SharePoint 行为 外部内容类型为外部数据和服务提供了 Office 项目类型行为(例如,Microsoft Outlook 中的联系人、任务和日历,Microsoft Word 中的文档以及 Microsoft SharePoint Workspace 中的列表);SharePoint 行为(例如,列表、Web 部件和配置文件页);和功能(例如,搜索或脱机工作的能力),以便用户能够在其熟悉的工作环境中工作,而无需查找数据或了解不同的(和专有)用户界面并与之交互。
.启用脱机工作 可在 Outlook 2010 和 SharePoint Workspace 2010 中脱机使用外部内容类型。Business Connectivity Services 提供了丰富的缓存和脱机工作功能,并支持基于缓存的操作。即使当用户处于脱机状态或服务器连接缓慢、不稳定或不可用时,用户仍可无缝且高效地操作外部数据。当与服务器的连接可用时,将同步对缓存业务实体执行的读取/写入操作。
从上面的描述可以看出,为与OutLook建立关联,我们应该从创建外部内容类型入手。
下面我们来分析各备选项:
选项A.创建一个包含外部数据列定义的列表。显然不符合题目所描述的:此列表只能用来显示Microsoft Office Outlook 2010数据的要求。因为此列表除了可以显示外部数据列,还可以包含你自定义的数据列。所以排除。
选项B.先创建外部数据列表,再基于此列表创建外部内容类型。这种操作显然不正确。我们知道内容类型的创建从来不是基于哪个列表进行的,反之,列表的创建往往是基于内容类型来创建的。所以仅从此操作顺序上来看,就应该排除此选项。
选项C.先创建外部内容类型,再设置Office Item Type(这样设置后,就可以把Outlook相关数据与external content type整合起来),然后再基于此外部内容类型创建一个外部列表。这显然符合正确的操作。
选项D.先把Outlook中的数据导出到一个文件中,然后再基于此文件创建外部数据列表。此操作也显然是错误的,因为,首先,这样作的结果并不是与OutLook建立直接的联系。其次,无法与OutLook之间的数据进行同步操作。所以,此选项也应排除。
因此本题答案应该选 C
参考
http://msdn.microsoft.com/zh-cn/library/ee556391(v=office.14).aspx
http://chakkaradeep.com/index.php/sharepoint-2010-business-connectivity-services-walkthrough/
http://msdn.microsoft.com/en-us/magazine/ee819133.aspx
Question 107
You are designing a SharePoint 2010 application. A Windows Communication Foundation (WCF) service provides a connection to company information. You need to design a list that gets its data from the WCF service. Which approach should you recommend?
A. Create an external content type and set the External Data Source Type to WCF Service. Create a list that uses this external content type as its source.
B. Create an external content type and set the External Data Source Type to .NET Type. Create a list that uses this external content type as its source.
C. Create an external list and set the External Content Type property to the URL of the WCF service.
D. Create an external list and set the External Content Type property to the Web Service Definition Language (WSDL) file of the WCF service.
解析:
你设计一个Sharepoint2010应用程序, 一个WCF服务提供了获取公司信息的途径,你需要在你的Sharepoint应用程序中使用一个列表来从WCF服务获取并显示公司信息。你该使用哪种方法?
本题的实质是要通过外部数据列表引入WCF服务数据源提供的数据。
我们直接来看如何:基于 WCF 端点创建外部内容类型?
Microsoft SharePoint Designer 2010 中的外部内容类型设计器支持创建连接到 Windows Communication Foundation (WCF) 服务的外部内容类型。您可以只发现 WCF 服务,指向将执行所需操作的绑定和协定,并使用它创建外部内容类型,而无需编写任何代码或 XML。创建连接到 WCF 服务的外部内容类型的过程与创建连接到 Web 服务的外部内容类型的过程类似。
创建基于 WCF 服务的外部内容类型
1. 打开 SharePoint Designer,并按照如何:基于 Web 服务创建外部内容类型中所述的步骤执行操作以创建外部内容类型。除了“添加与外部系统的连接”这一过程之外,所有其他过程完全相同。若要添加与 SDK 中提供的示例 WCF 服务的连接,请执行以下步骤。
2. 单击已连接系统旁边的“单击此处以发现外部数据源并定义操作”。
3. 在“添加连接”对话框中,单击“WCF 服务”。然后,在“WCF 服务连接”对话框中,执行以下步骤。
4. 在“服务元数据 URL”中,可以输入下列任一内容:使用 MetadataExchange 协定公开的终结点的 URL、WCF 服务的 WSDL 位置或下载和存储 WSDL 和 XSD 架构文件的网络位置的 URL。在此示例中,输入 WSDL 的 URL。
5. 在“连接模式”字段中,可以选择“WSDL”或“元数据交换”,具体取决于公开终结点的方式。在此示例中,选择 WSDL。
6. 在“服务终结点 URL”字段中,输入服务终结点 URL,然后单击“确定”以接受其他默认设置。
7. 现在按如何:基于 Web 服务创建外部内容类型中描述的步骤执行操作以定义操作和创建外部内容类型。
从上面描述直接可以判断选项A为本题正解。
选项B.指向了错误的数据源类型.NET。
选项C.D均是把创建列表放到了创建基于WCF服务的外部内容类型之前,所以错误。
因此本题答案应该选 A
参考
http://msdn.microsoft.com/zh-cn/library/ee557704(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ee556831(v=office.14).aspx
Question 108
You are designing a SharePoint 2010 application that displays information from an external database. You need to develop the application to meet the following requirements:
.Remote connections to the external database are not allowed.
.Data from multiple tables must be joined into a single list.
.The list must be synchronized with the external database.
Which approach should you recommend?
A. Build a Web service to manage each table, and use the SPQuery object to join the data fields into a single list.
B. Build a Web service to manage each table, use Business Connectivity Services (BCS) to import the individual tables into lists, and then create a new list that joins these external lists together.
C. Build a Web service to join the data fields into a single list, and use BCS to synchronize the list with the external database.
D. Build a Web service to join the data fields into a single list, and implement event receivers to synchronize the list with the external database.
解析:
你设计一个Sharepoint2010应用程序,显示来自外部数据库的数据,且需要满足如下要求:
要求1. 不允许远程连接到外部数据库
要求2. 允许合并来自外部数据库的多个表的数据到一个Sharepoint列表中
要求3. 列表中的数据必需与外部数据库数据同步
该如何实现你的程序?
直接分析各备选项:
选项A.B均没解决列表中的数据必需与外部数据库数据同步的问题。使用Web service管理每个表仅限于外部数据库内部进行表管理,无法实现与Sharepoint列表之间的同步。选项A使用SPQuery合并表,这种合并仅能合并Sharepoint内部的列表,而非外部数据库中的表。选项B基于BCS导入的列表创建一个新的合并列表,这种方式无法实现合并后的表与外部数据库表的同步。所以,选项A.B均排除。
选项C.在外部通过Web Service合并表,然后再通过BCS引入Sharepoint环境并负责双方的同步。本选项是本题的正解。
选项D.通过Event Receiver无法实现Sharepoint外部数据列表与外部数据源之间的同步。所以也被排除。
因此本题答案应该选 C
参考
http://technet.microsoft.com/zh-cn/library/ee661742(v=office.14).aspx
Sharepoint学习笔记—习题系列--70-576习题解析 -(Q105-Q108)的更多相关文章
- Sharepoint学习笔记—ECM系列—文档列表的Metedata Navigation与Key Filter功能的实现
如果一个文档列表中存放了成百上千的文档,想要快速的找到你想要的还真不是件容易的事,Sharepoint提供了Metedata Navigation与Key Filter功能可以帮助我们快速的过滤和定位 ...
- Sharepoint学习笔记—ECM系列--文档集(Document Set)的实现
文档集是 SharePoint Server 2010 中的一项新功能,它使组织能够管理单个可交付文档或工作产品(可包含多个文档或文件).文档集是特殊类型的文件夹,它合并了唯一的文档集属性以及文件夹和 ...
- Sharepoint学习笔记—习题系列--70-576习题解析 --索引目录
Sharepoint学习笔记—习题系列--70-576习题解析 为便于查阅,这里整理并列出了70-576习题解析系列的所有问题,有些内容可能会在以后更新. 需要事先申明的是: 1. ...
- Sharepoint学习笔记—习题系列--70-573习题解析 --索引目录
Sharepoint学习笔记—习题系列--70-573习题解析 为便于查阅,这里整理并列出了我前面播客中的关于70-573习题解析系列的所有问题,有些内容可能会在以后更新, ...
- Deep Learning(深度学习)学习笔记整理系列之(五)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(八)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(七)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(六)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(四)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(三)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
随机推荐
- WPF绘制折线
WPF后台绘制折线,填充到一个GRID下 private void btnPreview_Click(object sender, RoutedEventArgs e) { GridImg.Child ...
- PHP中AJAX的使用(完整实例【大牛可飘过】)
有一段时间不写关于AJAX的东西了,最近和同学参加个比赛,要做一个类似博客的东西,用到了AJAX的东西,在写东西之前为了再熟悉一下AJAX,自己做了个关于AJAX的小事例与大家分享一下. AJAX在j ...
- ((uchar*)(Img1->imageData + Img1->widthStep*pt.y))[pt.x] 的 具体含义
widthstep是指图像每行所占的字节数. 主要要和width区别: width是表示图像的每行像素数,widthStep指表示存储一行像素需要的字节数. 在OpenCV里边,widthStep必须 ...
- ZOJ Problem Set - 1338 Up and Down Sequences 解释 ac代码
这道题目我一开始一头雾水,怎么都数不对,参考了下网上的博文,才弄懂. 题意是这样的,如果是上升序列,上升序列的长度不是所有上升数字的,是这么规定的,如果它与前一个数字构成上升,那么这个数字算上长度.所 ...
- 1Z0-053 争议题目解析346
1Z0-053 争议题目解析346 考试科目:1Z0-053 题库版本:V13.02 题库中原题为: 346.What is the impact of the results of the outp ...
- C# 中的as和is小结
在读.Net 框架设计的时候,关于C#中类型转化中的部分内容,在此总结记录,分享予大家. 首先,我们声明一个简单的继承关系. Class Father { Int x; } Class Child:F ...
- spring boot 配置启动后执行sql, 中文乱码
spring.datasource.schema指定启动后执行的sql文件位置. 我发现中文乱码,原因是没有指定执行sql script encoding: spring: datasource: u ...
- 【原创】SQL审核系统
前言 应公司dba的需求,做了一个sql审核并可以执行.记录的系统,整个系统有三种角色: DBA(需要管理员手动登记) 运维人员(需要管理员手动登记) 开发人员(默认注册后用户) 权限分配如下: 一些 ...
- Hibernate —— 映射关联关系
一.映射多对一关联关系. 1.单向的多对一 (1)以 Customer 和 Order 为例:一个用户可以发出多个订单,而一个订单只能属于一个客户.从 Order 到 Customer 是多对一关联关 ...
- C# 热敏打印机 Socket 网络链接 打印 图片 (一)
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using Syste ...