exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 134 discussion

Actual exam question from Salesforce's CRT-450
Question #: 134
Topic #: 1
[All CRT-450 Questions]

A developer needs to update an unrelated object when a record gets saved.
Which two trigger types should the developer create? (Choose two.)

  • A. after insert
  • B. before update
  • C. before insert
  • D. after update
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HR444
Highly Voted 2 years, 11 months ago
Pretty certain it should be A and D if the update is happening on an UN-related record
upvoted 19 times
life_monkey
2 years, 11 months ago
I think so: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm
upvoted 4 times
...
...
JoeColoe
Highly Voted 2 years, 10 months ago
It's AD
upvoted 6 times
...
Ak_3008
Most Recent 1 year ago
Selected Answer: BC
Those answer are correct
upvoted 1 times
...
BeatrizBernardo
1 year, 1 month ago
Selected Answer: AD
A and D
upvoted 2 times
...
_ApexPredator_
1 year, 7 months ago
Selected Answer: AD
Agree with the other comments here.
upvoted 3 times
...
ApexMike
1 year, 10 months ago
Selected Answer: AD
updating records (other than the one in context) has to be done in an After event. Best practice 101.
upvoted 3 times
...
JCTheGenius
2 years, 11 months ago
There is no need to access the record id of the record being inserted to create the un-related one so "before" works fine. So b and C is fine for me.
upvoted 3 times
noox
2 years, 7 months ago
Just by using pure "logic", you want to be sure that the record is being saved in the database before creating another record, even if is UN-related.
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...