| Exam Code/Number: | 70-573Join the discussion |
| Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
| Certification: | Microsoft |
| Question Number: | 150 |
| Publish Date: | Aug 29, 2026 |
|
Rating
100%
|
|
You have a SharePoint list named Assets that contains 1,000,000 items. The list contains a column named Urgent. Approximately 100 items have a value of True in their Urgent column.
You use the following line of code to retrieve the Assets list.
SPList assetsList = currentWeb.Lists["assets"];
You need to retrieve all of the items in the list that have a value of True in their Urgent column. You must retrieve the items in the minimum amount of time.
What should you do?
You deploy a custom Web Part named WebPart1 to a SharePoint site.
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)02 {
03 04 05 06 07 08
SPSite site = null;try{ SPSite site = new SPSite("http://www.contoso.com/default.aspx");SPWeb web = site.OpenWeb();
09
...
10
11
}catch
12
13
{
14
15
16
17
}finally{
18
}
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
You use a third-party site definition to create SharePoint sites.
You need to add a Web Part to the home page of the site definition.
Which file should you modify?
You have a custom Web Part that is deployed as a sandboxed solution.
You need to ensure that the Web Part can access the local file system on a SharePoint server. You must
minimize the amount of privileges assigned to the Web Part.
What should you do?
You have a SharePoint site. The current master page of the site is v4.master.
You create a custom master page named MyMasterPage.master.
You deploy the master page to /_catalogs/masterpage/.
You need to apply the custom master page to only the content pages of the site.
What should you do?