nerdexam
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

CRT-450 question #63 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)
  • A
    10% (2)
  • C
    5% (1)
  • D
    85% (17)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice