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

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

An org has a requirement that the Shipping Address on the Account must be validated by a third-party web service, before the Account is allowed to be inserted. This validation must happen in real-time before the account is inserted into the system. Additionally, the developer wants to prevent the consumption of unnecessary SME statements.

What is the optimal way to meet this requirement?

  • A. Make a callout to the web service from a custom Visualforce controller.
  • B. Make a callout to the web service from a before insert trigger.
  • C. Make a callout to the web service from a standard Visualforce controller.
  • D. Make a callout to the web service from an after insert trigger.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Segre
Highly Voted 11 months, 1 week ago
Selected Answer: A
As validation must happen in real time it could not be a trigger
upvoted 5 times
...
AppleDash
Most Recent 11 months, 3 weeks ago
Should be B, says it should call the service BEFORE its created.
upvoted 1 times
AppleDash
8 months, 2 weeks ago
I´m dumb, ans is A.
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 ...