nerdexam
Salesforce

PDI · Question #10

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this

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

Submitted by packet_pusher· Apr 18, 2026Logic and Process Automation

Question

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement. Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors. Which two actions should the developer take to fix the code segment shown above? Choose 2 answers

Exhibit

PDI question #10 exhibit

Options

  • ACheck if all the required fields for Opportunity are being added on creation.
  • BUse Database.query to query the opportunities.
  • CMove the DML that saves opportunities outside the for loop.
  • DQuery for existing opportunities outside the for loop.

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI 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.

Topics

#Apex Triggers#Governor Limits#Bulkification#DML Best Practices
Full PDI Practice