Sharepoint学习笔记—习题系列--70-576习题解析 -(Q25-Q28)
Question 25
You are designing a SharePoint 2010 farm in your organization. You need to design the library to meet the following requirements:
.The budget approval office needs a custom document library, which will send an e-mail as soon as each budget document is updated by a user.
.The SharePoint farm administrator wants to block the addition of any document that is larger than 100 MB and send out a message to users informing them of the failure. Which approach should you recommend?
A. Design the following event receivers:
.An asynchronous event receiver to send an e-mail after the document is updated
.A synchronous event receiver to display a warning message when a file is added that is larger than 100 MB
B. Design the following event receivers:
.A synchronous event receiver to send an e-mail after the document is updated
.An asynchronous event receiver to display a warning message when a file is added that is larger than 100 MB
C. Design a timer job to send the following:
.A batch of “budget document updated” e-mails at the end of each day
.A synchronous event receiver to display a warning message when a file is added that is larger than 100 MB
D. Design a service application to send the following:
.A batch of “budget document updated” e-mails at the end of each day
.A synchronous event receiver to display a warning message when a file is added that is larger than 100 MB
解析:
本题需要你在组织机构内设计一个满足下列要求的文档库:
要求1. 预算审批部门有他们的文档库,当此文档库中的文档有任何更新时,需要尽快(as soon as )发送Email给相关人员。
要求2. 场管理人员需要阻止添加任何大于100MB的文档到文档库,并给用户发送Email通知其添加大文档失败。
首先大致浏览一下备选项项,总共有三类实现方式:
1、Event Receiver,应该是比较合理的方式
2、Timer job, 此方式的主要问题是无法满足事件处理的实时性,如要求2中,当上传大文档时就需要马上拒绝并通知用户。
3、Service Application服务应用程序,使用 Service Application Framework 的原因一般包括:
i. 提供专供多个 SharePoint Web 应用程序使用的计算和分析
ii 在网站和网站集之间共享数据,从而在承载方案的服务器场中提供应用程序的多个实例
iii 执行长期运行的操作
iv 使用 Service Application Framework 提供的常规管理和设置基础结构
服务应用程序无法挂接到文档库事件中,而且选项D中处理文档更新的方式也并不是即时性的,所以,此方式也应该被排除。
接下来回到Event Receiver方式,选项A.B的主要区别在于理解同步(Synchronous)与异步(Asynchronous):在Sharepoint2010中,你可以设置event receivers为Synchronous或Asynchronous。所谓同步,就是Event Receiver在事件发生时立即执行相关动作,它运行在w3wp.exe进程中。而所谓异步,就是Event Receiver在事件发生时并不立即执行相关动作,而是由OWSTIMER.exe控件其动作的时机。
在本题要求文档更新需要尽快[as soon as]发送Email,而针对大文档则要求”立即”[without any delay]处理,所以前者使用Asynchronous即可满足需要,而后者则必须需要Synchronous处理。
因此本题答案应该选 A
参考
http://msdn.microsoft.com/zh-cn/library/ee536537(v=office.14).aspx
http://chakkaradeep.com/index.php/event-receivers-in-sharepoint-2010/
Question 26
You are designing a solution on a SharePoint 2010 intranet site where administrative access to the SharePoint 2010 application server is not available. You need to ensure that site usage information is collected on search statistics for all the sites on the farm. Which approach should you recommend?
A. Create a Windows service and schedule it to collect the search statistics according to a specified schedule.
B. Create a SharePoint sandboxed solution to collect the search statistics.
C. Write a console application to collect search statistics. Create a timer job to run the application according to a specified schedule.
D. Write a console application to collect search statistics. Use Windows Task Scheduler to run the application at regular intervals.
解析:
你在设计一个Sharepoint2010内网解决方案,你需要确保你能收集场内所有网站的使用情况统计信息,你应该采用哪种方式解决此问题呢?
首先,这是基于Sharepoint平台环境的信息获取,你只可能依赖于Sharepoint提供的相关工具完成对其相关对象的信息统计与整合,因此,选项A中采用通过创建Window Service服务并结合Schedule制定来收集Sharepoint内部对象的信息的方式是根本行不通的。因为,首先Window Service服务是针对每台机器本身的环境的。其次,它无法去操控Sharepoint的环境对象,更别提汇集这些对象的相关信息了。
其次,由于信息来自于场内的多个网站(集),所以,选项B采用依赖于Sandbox方式汇集信息的手段也不可能行得通。因为Sandbox是受限方案,它的活动空间往往就局限于它所部署的网站集内部,它是不能完成跨网站集操作的。所以,选项B也被排除。
余下的就是选项C.D,这两个选项的共同点就是通过编写Console应用来收集相关信息,这是可行的。差异在于如何计划执行任务:其中选项D试图通过Windows的Task Scheduler来计划收集场内各网站的信息的统计任务。问题在于Windows的Task Scheduler是针对的本机的任务安排,它根本就作用不到Sharepoint场,而如何执行场内各网站集的信息收集的任务是基于场的环境来安排的内容,它是跨服务器的操作,所以选项D是错误的,而选项C则基于Sharepoint的Timer Job来计划任务的执行,这是完全没有问题的。
因此本题答案应该选 C
参考
http://technet.microsoft.com/zh-cn/library/cc678870(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383614(v=vs.85).aspx
Question 27
You are using SharePoint 2010 to design a site at your company. All employees need to have permission to fill out a new form. When an employee submits the form, the request should be saved as an item in a custom list. You have the following requirements:
.For security reasons, employees must only be able to view their own requests.
.Employees must not be able to view requests that other employees have submitted.
.Company managers must have permission to view every request submitted.
Which approach should you recommend?
A. Create a new workflow that updates the owner of the list item to the username of the employee who submitted the form.
B. Create and schedule a SharePoint timer job that sets item level security on each item in the list.
C. Create an event receiver that sets the appropriate item level security. Add the event receiver to the Item Added event in the list.
D. Create an event receiver that sets the appropriate list level security. Add the event receiver to the Item Updated event in the list.
解析:
本题是要你提供一个表单填报解决方案,公司员工填报的表单需要保存到列表中,此方案必须满足如下要求:
要求1.2. 员工只允许看到他们自己填报的结果
要求3.公司管理人员可以看到所有人的填报结果
根据题干要求,本题需要控制的权限粒度应该是列表项级(Item-Level Permissions),所以首先排除选项D,因为它设置是List级的权限。然后是权限设置的时机,很明显,我们应该在员工填报完表单,即填报结果保存进指定列表后,进行对应列表项的权限设置,而能满足此要求的最好方式就是基于列表项的相关事件,所以应该是Item Added Event, 而只有选项C符合此要求。
至于选项A. 通过工作流去更改List Item的Owner并不能控制List Item可见性。
而选项B.通过计划时间任务去修改List Item的Permission则无法满足权限控制的”及时”性。
因此本题答案应该选 C
参考
http://technet.microsoft.com/zh-cn/library/cc721640.aspx
Question 28
You manage your company’s SharePoint 2010 development efforts. Your company has hired an outside vendor to print its marketing materials. The head of the marketing department has asked you to design a plan to add functionality to the intranet site that will allow company employees to submit their print orders to a SharePoint list on the intranet site throughout the day. The vendor should receive a daily e-mail that shows them all the orders that were submitted to the intranet site the day before. Your plan needs to make this functionality possible. Which approach should you recommend?
A. Create a custom workflow that generates an e-mail with order details and sends it to the vendor. Attach the workflow to the list and configure it to execute each time an item is added to the list.
B. Create an event receiver that generates an e-mail with order details and sends it to the vendor. Attach the event receiver to the Item Adding event on the list.
C. Create an event receiver that generates an e-mail with order details and sends it to the vendor. Attach the event receiver to the Item Added event on the list.
D. Create a timer job that retrieves all the orders submitted to the SharePoint list, generates an e-mail containing the order information, and sends it to the vendor. Schedule the timer job to run each morning.
解析:
本题题意:你所在的公司专门找了一家外面的公司帮助打印本公司的市场销售方面的资料,因此,公司销售部门的经理找到IT部门,需要你设计一个基于Sharepoint的解决方案,方案需要做的事情就是:本公司员工如果需要打印相关资料,就直接提交他们的打印请求,这些请求被保存在指定的Sharepoint列表中,而外面的那家公司则每天都会收到Email,其内容就是前一天所汇总的打印请求清单。
根据题意,你可以判断此要求有个明显的特点,就是每天有个特定的任务即: 汇总打印请求并发送Email,具有典型的Timer Job特征,只有选项D使用了Timer Job。
为确定我们的判断,我们还需要进一步分析其它备选项:
选项A. 每提交一个新的打印请求(execute each time an item is added to the list)就需要执行指定的工作流任务,此任务负责汇总请求,创建并发送Email。很显然,选项A变更了任务的执行频率。所以应该排除。
选项B.C 也与选项A类似,只不过是基于列表项的事件接收器中执行相关任务。也变更了任务的执行频率。
因此本题答案应该选 D
参考
Sharepoint学习笔记—习题系列--70-576习题解析 -(Q25-Q28)的更多相关文章
- 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 ...
随机推荐
- Android上滑手势触发和不增加布局层级扩大点击区域
最近项目中需要实现手势上滑或者点击滑出界面的效果,实现上是利用GestureDetector,然后在onFling中判断,但遇到一个问题:手势上滑是针对整个布局的,但如果有对单独的View设置点击监听 ...
- java变量的加载顺序
学习编程思想 package com.test.java.classs; /** * Created by Administrator on 2015/12/7. * 在类的内部,变量定义的顺序决定了 ...
- Sql Server,如何去含有非数字的nvarchar,再转为为数值
菜鸟一枚,今天做项目时,突然遇到一个问题: 在数据库中中存放的nvarchar类型的“时间”,例如:‘08:00’,而我需要进行时间的范围比较,这时就想到了将nvarchar类型转化为int类型. 这 ...
- SQL Server安全(3/11):主体和安全对象(Principals and Securables)
在保密你的服务器和数据,防备当前复杂的攻击,SQL Server有你需要的一切.但在你能有效使用这些安全功能前,你需要理解你面对的威胁和一些基本的安全概念.这篇文章提供了基础,因此你可以对SQL Se ...
- postgres中几个复杂的sql语句
postgres中几个复杂的sql语句 需求一 需要获取一个问题列表,这个问题列表的排序方式是分为两个部分,第一部分是一个已有的数组[0,579489,579482,579453,561983,561 ...
- 【Android】使用属性动画碰到的困惑及讲解
属性动画的教程网上已经特别多了,本篇也不打算再去各种详解知识点,主要就是记录题主学习属性动画时的碰到的一些困惑,以及后来自己的理解.如果有人也碰到相似的问题,正好可以一起讨论下. 概要 本篇主要涉及的 ...
- win10系统下点击关机却自动重启的问题解决思路
第一步.进入win10系统后,我们点击开始菜单上鼠标右键,选择控制面板 第二步.找到电源选项,点击进去(如何没发现,点击右上角查看方式,更换为小图标) 第三步.点击选择关闭盖子的功能 第四 ...
- HtmlAgilityPack 处理通配的contains
//选择不包含class属性的节点 var result = node.SelectNodes(".//span[not(@class)]"); //选择不包含class和id属性 ...
- 【转载】ASP.NET MVC的过滤器
APS.NET MVC中(以下简称“MVC”)的每一个请求,都会分配给相应的控制器和对应的行为方法去处理,而在这些处理的前前后后如果想再加一些额外的逻辑处理.这时候就用到了过滤器. MVC支持的过滤器 ...
- 重构:用Command替换条件调度程序
注:该随笔受启发于 <重构与模式> 第七章 第7.6小节 用Command替换条件调度程序 . 对于Command不做过多解释,这里我找了两个例子.供部分园友参阅:Command例子1 ...