Salesforce Certified Platform Developer II — Question 274

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.
What can a developer do to help alleviate such issues?

Answer options

Correct answer: A

Explanation

Using the transient keyword in Apex prevents the serialization of the queried Account records, which reduces memory usage and speeds up the rendering time. The other options may not effectively address the performance issue; for example, JavaScript remoting is useful but may not solve the underlying rendering delay, while pagination and third-party libraries do not directly optimize the data retrieval process.