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 217 discussion

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

A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate, and Created ById must be passed to the external system in near real-time when an Account is inserted without error.
How should a developer achieve this?

  • A. Use a before insert trigger and a Queueable class
  • B. Use a before insert trigger and an @future method
  • C. Use a Process Builder that calls an @InvocableMethod method
  • D. Use a Workflow rule that calls an @InvocableMethod method
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
tester1987
10 months, 3 weeks ago
Selected Answer: C
you can't sync in before triggers as there may be an validation error. its best to do in after trigger and workflow also not even an option as it can't do callouts
upvoted 1 times
...
[Removed]
1 year, 3 months ago
Selected Answer: C
I believe the correct answer is C. Using Process Builder or Flow, you invoke the @InvocableMethod when specific conditions are met. Within @InvocableMethod, if you want to perform asynchronous processing, you trigger asynchronous processing using classes such as Queueable or Platform Events.
upvoted 1 times
...
glukinho
2 years, 11 months ago
Correct, Id, CreatedDate. and CreatedByld would exist only in after triggers. Workflows can't call methods
upvoted 3 times
BrucePark
1 year, 3 months ago
Then why not D with outbound message?
upvoted 1 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 ...