nerdexam
Salesforce

PDII · Question #212

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response_ _c do not belong to a list of blocked domains. The list…

The correct answer is A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the. See the full explanation below for the reasoning.

Question

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response_ c do not belong to a list of blocked domains. The list of blocked domains will be stored in a custom object for ease of maintenance by users. Note that the Survey_Response _c object is populated via a custom Visualforce page. What is the optimal way to implement this?

Options

  • AImplement the logic in a helper class that is called by an Apex trigger on Contact and from the
  • BImplement the logic in an Apex trigger on Contact and also implement the logic within the Custom
  • CImplement the logic in a Validation Rule on the Contact and a Validation Rule on the
  • DImplement the logic in the Custom Visualforce page controller and call that method from an Apex

How the community answered

(52 responses)
  • A
    83% (43)
  • B
    10% (5)
  • C
    2% (1)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice