pdi question 296 discussion

View all Platform Developer I Exam here
back to salesforce forum

Question 296

Consider the following code snippet:

Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer
should Implement and ensure successful execution of the method?

  • A. Avoid executing queries without a limit clause.
  • B. Avoid returning an empty List of records.
  • C. Avoid using variables as query filters.
  • D. Avoid performing queries inside for loops.
Answer:

D


User Votes:
A 3 votes
50%
B 1 votes
50%
C
50%
D 6 votes
50%
Discussions
0 / 1000
mouhamed.ba
1 year ago

Correct is D