Posted by: Pdfprep
Post Date: January 30, 2021
A developer identifies the following triggers on the Expense_c object:
✑ DeleteExpense,
✑ applyDefaultstoexpense
✑ validateexpenseupdate;
The triggers process before delete, before insert, and before update events respectively.
Which two techniques should the developer implement to ensure trigger best practice are followed?
A . Unify the before insert and before update triggers and use Process Builder for the delete action.
B . Maintain all three triggers on the Expense__c object, but move the Apex logic out for the trigger definition.
C . Create helper classes to execute the appropriate logic when a record is saved. (Missed)
D . Unify all three triggers in a single trigger on the Expense__c object that includes all events.
Answer: C,D