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
- A. Use the transient keyword in the Apex code when querying the Account records
- B. Use JavaScript remoting to query the accounts
- C. Use the standard Account List controller and implement pagination
- D. Upload a third-party data table library as a static resource
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.