nerdexam
Salesforce

PDII · Question #104

A developer must create a custom pagination solution. While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed. How can the…

The correct answer is B. Use a StandardSetController. See the full explanation below for the reasoning.

Question

A developer must create a custom pagination solution. While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed. How can the developer meet these requirements?

Options

  • AUse @Cache annotation
  • BUse a StandardSetController
  • CUse OFFSET in SOQL queries
  • DUse OFFSET WITH CACHE in SOQL queries

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    84% (31)
  • C
    5% (2)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice