Which two actions should the developer take to fix the code segment shown above?
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
A . Check if all the required fields for Opportunity are being added on creation.
B . Use Database.query to query the opportunities.
C . Move the DML that saves opportunities outside the for loop.
D . Query for existing opportunities outside the for loop.
Answer: C, D
Latest PDI Dumps Valid Version with 191 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund