Exam PDII Topic 3 Question 84 Discussion
Actual exam question for Salesforce's PDII exam
Question #: 84
Topic #: 3
Question #: 84
Topic #: 3
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?
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?
Suggested Answer: C Vote an answer
A StandardSetController or a SOQL LIMIT clause can be used to limit the number of records displayed at a time in a Visualforce page, and improve the performance and user experience of the page. A StandardSetController is a class that allows the developer to create list controllers, which can display a set of records using pagination, filtering, sorting, and other features. A SOQL LIMIT clause is a keyword that can be used to specify the maximum number of records to return from a query. By using either of these methods, the developer can reduce the amount of data that is transferred and processed by the page, and avoid the view state error, which occurs when the size of the view state exceeds the limit of 135 KB. Reference: [StandardSetController Class], [SOQL LIMIT Clause], [View State]
by Murphy at Jul 25, 2026, 09:06 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).