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

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

A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set.
What is the optimal way to achieve this?

  • A. Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method.
  • B. Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method.
  • C. Create an after insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method.
  • D. Create an after insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Rocky_sfdc
Highly Voted 3 years, 9 months ago
D is the answer. As Process Builder Required both @future and @Invocable ... ths why is not A.
upvoted 12 times
...
Anjindal
Most Recent 5 months, 3 weeks ago
Selected Answer: B
Ans is B
upvoted 1 times
...
Not_Nam
1 year, 4 months ago
C and D can't update Address field in After context A use @future annotation =>It's made async function, so that we can't catch value of Address field by sycn way I'll will go for B answer, which the best choice I considered.
upvoted 1 times
...
KK13
2 years, 10 months ago
Selected Answer: D
https://salesforce.stackexchange.com/questions/202350/invocablemethod-process-pluginresult-and-future
upvoted 3 times
...
abhichauhan
3 years, 10 months ago
why not A..process can also do the same with less code approach
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 ...