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

Question  95 
Your development team has asked you to help them determine the cause of an error in a document conversion in SharePoint 2010. Your team has checked the Unified Logging Service (ULS) and Event logs, but cannot find the error. You need to direct them to discover more information in the ULS and Event logs to help identify the error. Which approach should you recommend?
A. Examine the ULSTraceLog view in the SharePoint logging database.
B. Disable the Event Log Flood Protection property and test the conversion again.
C. Adjust the throttling of document conversion events and test the conversion again.
D. Adjust the trace log disk space usage setting and test the conversion again.

解析:
  你被要求帮助你的开发小组查找一个关于Sharepoint2010的Document Convertion错误。你的开发小组已经检查了ULS服务及Event Logs,但并没找到相关错误信息。因此你需要指导他们如何进一步利用ULS与Event Logs以识别出相关错误信息。
  选项A,检查日志记录数据库中的各个视图,这种方法既不安全(因为日志数据库不是随便对哪个程序开发人员都能开放的),也不方便(因为你会发现日志记录数据库中有太多的视图了,你一时半会儿很难确定哪个视图是作什么用的,哪个视图包含有你想要的信息)
 选项B,关闭事件日志淹没保护(Event Log Flood Protection)。我们知道,此设置可将系统配置为检测 Windows 事件日志中的重复事件。在重复记录同一个事件时,将会检测到重复事件并加以阻止,直到条件返回某个典型状态。很明显,此设置项与本题没有太大关系。
 选项D,限制日志磁盘空间使用率。默认情况下,诊断日志记录可使用的磁盘空间量是不受限制的。因此,限制日志记录使用的磁盘空间量可确保磁盘不会被填满,尤其是在将日志记录配置为写入详细级别的事件时。在使用完限定的磁盘空间量后,将删除最早的记录并记录新的日志记录数据信息。很明显,此设置项也与本题没有太大关系。
 选项C, 是指在SharePoint Central Administration的Diagnostics Logging 页面上设置Event Throttling节,通过此节的设置可以大大排除众多无关的事件,从而缩小了分析范围。
因此本题答案应该选 C

参考 
http://msdn.microsoft.com/en-us/library/ff647362.aspx
http://weblogs.asp.net/erobillard/archive/2008/07/31/sharepoint-trace-logs-and-the-unified-logging-service-uls.aspx

 

Question  96
You are creating a plan to add new functionality into a SharePoint 2010 farm. Several artifacts must be created to provide the new capabilities. The artifacts required include the following:
.A custom site definition with company branding
.A Web Part to provide a graph of business statistics
.Custom code to calculate the business statistics
Your plan needs to include a process to create and deploy the new functionality.
Which approach should you recommend?
A. Define the new site definition, including the company branding and all the required artifacts. Create a site using this new site definition.
B. Define a site template built on a new site definition, which includes the company branding. Implement it on the site that includes the new artifacts. Reset IIS.
C. Develop and test the required artifacts. Build the artifacts into a solution package. Deploy the solution package to the farm.
D. Build the company branding and the new artifacts into a feature. Staple the new feature to an existing site definition in the farm. Reset IIS.

解析:
  你准备向一个Sharepoint2010场中添加新的功能,此新功能包含如下需求:
  需求1.一个包含了公司风格设计的网站定义。
  需求2.一个包含了商务统计图表的Web Part
  需求3.客户代码用来实现商务统计信息的相关计算
  你该如何计划并实施这个新的功能呢?
 首先,本题题干要求是” add new functionality into a SharePoint 2010 farm”,而选项A.B均无添加此功能到Farm的明确操作,所以直接排除。
 选项D是使用功能附加,所谓功能附加:是通过一项专门用于将其他功能附加到一个或多个网站定义的功能实现。通过执行功能附加,可以将一项功能附加到通过任何网站定义或通过特定网站定义(基于在相应的 WEBTEMP.xml 文件中标识的模板名称)创建的任何新网站。所以很明显,此方式其实并非创建一个新功能,而且它也无法更改已经存在网站的网站风格。
  选项C.开发要求的功能并部署到场中,符合本题的要求。
因此本题答案应该选 C

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


Question  97 
You are creating a plan to add new functionality to an existing application in a SharePoint 2010 farm. The original application uses a site definition for site creation. Your plan needs to specify how to deploy the new functionality to meet all these requirements:
.The new functionality must include a Web Part that displays sales statistics and graphs.
.New sites that use the site definition must contain the new Web Part.
.The new functionality must be added to several existing sites.
.Deploying the new functionality must not disrupt the current functionality of the sites.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Build the new Web Part into a feature and deploy it to the farm. Activate the feature on all the existing sites that require the new functionality.
B. Create a new site template that includes the new Web Part. Use this template to add the new functionality to all sites that require it.
C. Create a new site definition that includes the feature. Regenerate the existing sites that require the new functionality using this site definition.
D. Create a new feature containing the Web Part. Staple the feature to the site definition that was used to create the existing sites.

解析:
 你需要向一个Sharepoint2010应用程序中添加新的功能,原来这个程序中使用了一个网站定义用于创建网站,你需要达到以下要求:
  要求1. 添加一个Web Part用以显示销售统计数据和图表
  要求2. 当用上面提到的那个网站定义创建网站时,则新创建的网站必须包含这个Web Part
  要求3. 此Web Part也必须添加到已经存在的网站中
  要求4. 当部署此功能时,必须不能影响已经存在的网站上其它功能的正常运行。
 你该如何操作才能达到上述要求呢?(两个选项答案)
  由于题干要求与要求4,原程序使用了一个网站定义创建网站,你需要“添加”新功能。而新功能不能影响已经存在的网站上其它功能的正常运行,所以选项B.C均可排除,因为不论是Site Template还是Site Definition,均是用来创建新的网站的,与原来的网站不再有关系。
  所以只剩下了选项A.D,而本题又要求有两个选项。
  选项A,把新功能部署到场中,再到已投入使用的网站中激活此功能。
  选项B,创建一个功能附加,即通过一项专门用于将其他功能附加到一个或多个网站定义的功能实现。通过执行功能附加,可以将一项功能附加到通过任何网站定义或通过特定网站定义(基于在相应的 WEBTEMP.xml 文件中标识的模板名称)创建的任何新网站。
因此本题答案应该选 A.D

参考 
http://msdn.microsoft.com/zh-cn/library/bb861862(v=office.12).aspx
http://msdn.microsoft.com/zh-cn/library/ms434313(v=office.12).aspx#中国(简体中文)
http://msdn.microsoft.com/zh-cn/library/bb802960(v=office.12).aspx#中国(简体中文)


Question  98 
The development team you manage has added new functionality to an application in the development environment that improves the application currently running in the production SharePoint 2010 farm. The added functionality includes several custom Web Parts. You need to create a plan to add the new functionality to the existing production SharePoint 2010 farm. Which approach should you recommend?
A. Create a new application that includes the Web Parts and deploy it to the farm as a .wsp package.
B. Export the site hosting the Web Parts as a .stp template file. Change the template file and import the .stp file back into the production farm.
C. Build the new functionality into a feature and use the Stsadm Upgrade command to update the application in the farm.
D. Build the new functionality into a feature in a new solution package and deploy it to the production farm.

解析:
  你负责的开发小组在Sharepoint开发环境中新开发了一个功能部署到Sharepoint2010场中,此功能包含了几个用户定义的Web Part,你需要实现把这个功能部署到Sharepoint2010生产环境中。你应该如何做呢?
 本题无需多说,1,由于是新功能,所以不存在Upgrade,因此,排除选项C。 2.由于此功能已经开发好并已在开发环境中测试,所以不在重新开发,因此排除选项A。部署功能到生产环境的方式并不是测试环境导出功能再部署到生产环境,所以排除选项B。
 我们只需要重新打包,然后再直接部署到服务器场即可。

因此本题答案应该选 D

参考 
http://msdn.microsoft.com/zh-cn/library/vstudio/ee231541.aspx
http://msdn.microsoft.com/zh-cn/library/vstudio/ee231544(v=vs.100).aspx

你可能感兴趣的:(SharePoint)