BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer I Topic 1 Question 102 Discussion

Actual exam question for Salesforce's Platform Developer I exam
Question #: 102
Topic #: 1
[All Platform Developer I Questions]

A developer identifies the following triggers on the Expense __c object:

The triggers process before delete, before insert, and before update events respectively.

Which two techniques should the developer implement to ensure trigger best practices are followed?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

Clorinda
26 days ago
D is the winner! Keeping the triggers lean and mean is the hallmark of a true Salesforce ninja.
upvoted 0 times
Alpha
11 days ago
D is definitely the way to go. Flow for delete action is a game changer.
upvoted 0 times
...
...
Cathrine
1 months ago
C is a big no-no. Putting all the logic in a single trigger is a recipe for disaster. Triggers should be focused and specific.
upvoted 0 times
Crissy
14 days ago
C is a big no-no. Putting all the logic in a single trigger is a recipe for disaster. Triggers should be focused and specific.
upvoted 0 times
...
Fredric
15 days ago
B) Create helper classes to execute the appropriate logic when a record is saved.
upvoted 0 times
...
Scarlet
19 days ago
A) Unify all three triggers in a single trigger on the expense__c object that includes all events.
upvoted 0 times
...
Dion
29 days ago
A) Unify all three triggers in a single trigger on the expense__c object that includes all events.
upvoted 0 times
...
Isabelle
29 days ago
B) Create helper classes to execute the appropriate logic when a record is saved.
upvoted 0 times
...
...
Madelyn
2 months ago
B is the choice for the lazy developer - let Flow do all the work while you sip your coffee!
upvoted 0 times
...
Audria
2 months ago
Option D is the way to go. Separating the trigger logic into helper classes is a best practice to keep the triggers clean and maintainable.
upvoted 0 times
Ricki
13 days ago
B) Unify the before insert and before update triggers and use Flow for the delete action.
upvoted 0 times
...
Leonida
18 days ago
A) Create helper classes to execute the appropriate logic when a record is saved.
upvoted 0 times
...
Rosendo
1 months ago
D) Maintain all three triggers on the Expense__c object, but move the Apex logic out of the trigger definition.
upvoted 0 times
...
...
Elena
2 months ago
I think we should also consider moving the Apex logic out of the trigger definition.
upvoted 0 times
...
Karima
2 months ago
I agree with Karon, it will help us follow best practices.
upvoted 0 times
...
Karon
2 months ago
I think we should create helper classes for better organization.
upvoted 0 times
...

Save Cancel