Microsoft
70-576 · Question #104
You are designing a SharePoint 2010 application. The code makes numerous calls to SPSite and SPWeb objects. The system and application performance is poor in the test environment. There is also a…
The correct answer is C. Ensure that the Dispose method of SPSite and SPWeb is called throughout the code. See the full explanation below for the reasoning.
Question
You are designing a SharePoint 2010 application. The code makes numerous calls to SPSite and SPWeb objects. The system and application performance is poor in the test environment. There is also a high level of memory use for IIS worker processes. You need to ensure that the application performance and high memory use issues are addressed. Which approach should you recommend?
Options
- AUse the Resource Throttling settings in Central Administration to increase site resource
- BUse the SPSite and SPWeb SharePoint 2010 PowerShell cmdlets.
- CEnsure that the Dispose method of SPSite and SPWeb is called throughout the code.
- DEnsure that the Close method of SPSite and SPWeb is called throughout the code.
How the community answered
(60 responses)- A5% (3)
- B2% (1)
- C85% (51)
- D8% (5)
Community Discussion
No community discussion yet for this question.