nerdexam
Microsoft

70-573 · Question #38

You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists. You need to retrieve all item titles from all lists. The data must be retrieved in the minimum amount of…

The correct answer is C. SPSiteDataQuery. MNEMONIC RULE: "100 sites = SPSite" The data must be retrieved in the minimum amount of time; therefore, SPSiteDataQuery SPSiteDataQuery Class

Developing for Data Access

Question

You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists. You need to retrieve all item titles from all lists. The data must be retrieved in the minimum amount of time. Which access method should you use?

Options

  • ASPList.Items
  • BSPListltemCollection.GetDataTable
  • CSPSiteDataQuery
  • DListData.svc

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • C
    78% (18)
  • D
    9% (2)

Explanation

MNEMONIC RULE: "100 sites = SPSite" The data must be retrieved in the minimum amount of time; therefore, SPSiteDataQuery SPSiteDataQuery Class

Topics

#SPSiteDataQuery#cross-site query#performance#list items

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice