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

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

PDII Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

Consider the following code snippet:

PDII Question 9

The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly.

Which technique should the developer implement to ensure the query performs optimally, while preserving the entire result set?


A.

Create a formula field to combine the createdDate and RecordType value, then filter based on the formula.


B.

Break down the query into two individual queries and join the two result sets.


C.

Annotate the method with the @Future annotation


D.

Use the Database queryLocator method to retrieve the accounts.


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.