Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 10 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 10
Topic #: 1
[All Certified Platform Developer II Questions]

A company's support process dictates that any time a Case is closed with a Status of 'Could not fix', an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case.
What is the correct way to automate this using an Apex trigger?

  • A. An after update trigger that creates the Engineering Review record and inserts it
  • B. A before update trigger that creates the Engineering Review record and inserts it
  • C. An after upsert trigger that creates the Engineering Review record and inserts it
  • D. A before upsert trigger that creates the Engineering Review record and inserts it
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
M4JK3LSON
11 months ago
Direct "upsert" trigger context does not exists but can be reached by invoking the same snippet of code on insert and update trigger context. Question informs that every time Case is closed with particular status an action should happend. If someone insert Case with this particular status action will not be fired in option A. But as mentioned - upsert trigger context doesn't exists directly. Really tricky question.
upvoted 1 times
...
MetaLojiqTee
1 year, 3 months ago
Selected Answer: A
The trigger should run only once the update to the Case record has been committed
upvoted 1 times
...
rufusroffie
1 year, 8 months ago
Before Trigger: In case of validation check in the same object. Update the same object. After Trigger: Insert/Update related object, not the same object. Notification Email.
upvoted 2 times
...
levian
2 years, 1 month ago
A is the right one
upvoted 2 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 ...