Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 57 Topic 6 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 57 Topic 6 Discussion

PDII Exam Topic 6 Question 57 Discussion:
Question #: 57
Topic #: 6

A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitting support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records based on the selected filters.

What should the developer do to improve performance of the component?


A.

Return all records into a list when the component is created and filter the array In JavaScript.


B.

Use a selective SOQL query with a custom Index.


C.

Use SOSL to query the records on filter change.


D.

Use setstoraclel() in the Apex method to store the response In the client-side cache.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.