pdii question 395 discussion

View all Platform Developer II Exam here
back to salesforce forum

Question 395

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.
  • 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.
  • D. Break down the query into two individual queries and Join the two result sets.
Answer:

D


User Votes:
A
50%
B
50%
C 2 votes
50%
D 1 votes
50%
Discussions
0 / 1000
isirbu
1 year, 3 months ago

wtf is D? C is the right answer

vanglik (replied to isirbu)
1 year ago

yea, I think you are correct

vanglik
1 year ago

https://salesforce.stackexchange.com/questions/239868/database-query-locator-vs-simple-query