Salesforce
CRT-450 · Question #63
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?
The correct answer is D. Avoid performing queries inside for loops. See the full explanation below for the reasoning.
Question
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?
Exhibit
Options
- AAvoid executing queries without a limit clause.
- BAvoid returning an empty List of records.
- CAvoid using variables as query filters.
- DAvoid performing queries inside for loops.
How the community answered
(20 responses)- A10% (2)
- C5% (1)
- D85% (17)
Community Discussion
No community discussion yet for this question.
