nerdexam
Salesforce

PDII · Question #303

PDII Question #303: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #303. The question stem and answer options stay visible for context.

Question

The following code segment is called from a trigger handler class from the Opportunity trigger: Which two changes should improve this code and make it more efficient? (Choose two.)

Exhibit

PDII question #303 exhibit

Options

  • AMove the DML outside of the for loop.
  • BUse Trigger.old instead of Trigger.new.
  • CMove the SOQL to fetch the account record outside of the for loop.
  • DMove the business logic inside the Opportunity trigger.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice