ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 324 - Certified Platform Developer II discussion

Report
Export

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?

A.
Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.
Answers
A.
Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.
B.
Adjust any code that filters by picklist values since they are not indexed.
Answers
B.
Adjust any code that filters by picklist values since they are not indexed.
C.
Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.
Answers
C.
Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.
D.
Remove instances of the transient keyword from the Apex controller to avoid the view state error.
Answers
D.
Remove instances of the transient keyword from the Apex controller to avoid the view state error.
Suggested answer: C
asked 23/09/2024
niels valk
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first