PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 04?

You need to disable the CriticalExceptionCount measure for all user solutions.

You write the following code segment. (Line numbers are included for reference only.)

01 SPUserCodeService userCode = SPUserCodeService.Local;
02 SPResourceMeasureCollection measures = userCode.ResourceMeasures;
03 SPResourceMeasure measure = measures[“CriticalExceptionCount”];
04
05 measure.Update();

Which code segment should you add at line 04?

PrepAway - Latest Free Exam Questions & Answers

A.
measure.AbsoluteLimit = 0;

B.
measure.AbsoluteLimit = 1;

C.
measure.ResourcesPerPoint = 0;

D.
measure.ResourcesPerPoint = 1;

Explanation:
MNEMONIC RULE: Zero ResourcesPerPoint

For example, AbnormalProcessTerminationCount has a ResourcesPerPoint value of 1. Every time a sandboxed solution terminates abnormally, 1 point is added. If you want to increase the penalty for a sandboxed solution that terminates, you can set ResourcesPerPoint to another value, such as 2. You can use 0 if you are not concerned about this metric.

SharePoint 2010 Sandboxed Solutions – Resource Quotas
http://sharepointinnovations.blogspot.com/2011/05/sharepoint-2010-sandboxed-solutions_06.html


Leave a Reply