nerdexam
Salesforce

PDII · Question #277

PDII Question #277: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #277. The question stem and answer options stay visible for context.

Question

There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user. The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, "Maximum view state size limit exceeded". What step should the developer take to resolve this issue?

Options

  • AUse a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records
  • BAdjust any code that filters by picklist values since they are not indexed.
  • CSplit the layout to filter records in one Visualforce page and display the list of records in a second
  • DRemove instances of the transient keyword from the Apex controller to avoid the view state error.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice
There is an Apex controller and a Visualforce page in an org that... | PDII Q#277 Answer | NerdExam