nerdexam
Microsoft

70-489 · Question #28

You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly. You need to ensure that pages load as quickly as possible. Which methods…

The correct answer is A. CrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl) C. Cache.Get(siteUrl). A: GetSiteData method (SPSite, String) Gets the cache data from the specified site and from the specified webUrl. C: Cache.Get Method Retrieves the specified item from the Cache object.

Design and develop advanced Microsoft SharePoint 2013 solutions

Question

You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly. You need to ensure that pages load as quickly as possible. Which methods should you use? (Each correct answer presents a complete solution. Choose all that apply.)

Options

  • ACrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl)
  • BCross ListQneryCache.GetSiteData(SPContext.Current.Site)
  • CCache.Get(siteUrl)
  • DSPList.GetItems(spQuery)

How the community answered

(32 responses)
  • A
    78% (25)
  • B
    6% (2)
  • D
    16% (5)

Explanation

A: GetSiteData method (SPSite, String) Gets the cache data from the specified site and from the specified webUrl. C: Cache.Get Method Retrieves the specified item from the Cache object.

Topics

#caching#CrossListQueryCache#Web Part performance#cross-list query

Community Discussion

No community discussion yet for this question.

Full 70-489 Practice