ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 395 - Certified Platform Developer II discussion

Report
Export

Consider the following code snippet:

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.
Annotate the method with the @Future annotation.
Answers
A.
Annotate the method with the @Future annotation.
B.
Create a formula field to combine the CreatedDate and RecardType value, then filter based on the formula.
Answers
B.
Create a formula field to combine the CreatedDate and RecardType value, then filter based on the formula.
C.
Use the Database.queryLocator method to retrieve the accounts.
Answers
C.
Use the Database.queryLocator method to retrieve the accounts.
D.
Break down the query into two individual queries and Join the two result sets.
Answers
D.
Break down the query into two individual queries and Join the two result sets.
Suggested answer: D
asked 23/09/2024
Tamas Szekely
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first