nerdexam
Salesforce

PDII · Question #261

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…

The correct answer is A. Make a callout to the web service from a custom Visualforce controller. See the full explanation below for the reasoning.

Question

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?

Options

  • AMake a callout to the web service from a custom Visualforce controller.
  • BMake a callout to the web service from a before insert trigger.
  • CMake a callout to the web service from a standard Visualforce controller.
  • DMake a callout to the web service from an after insert trigger.

How the community answered

(37 responses)
  • A
    84% (31)
  • B
    11% (4)
  • C
    3% (1)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice