Valid PDII Dumps shared by ExamDiscuss.com for Helping Passing PDII Exam! ExamDiscuss.com now offer the newest PDII exam dumps, the ExamDiscuss.com PDII exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDII dumps with Test Engine here:
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 is stored in a custom object for ease of maintenance by users. The survey Response c object is populated via a custom Visualforce page. What is the optimal way to implement this?
Correct Answer: B
The optimal way to enforce the exclusion of blocked domains for email addresses entered into Contacts and a custom object is to use a helper class. The class can be called by an Apex trigger on the Contact object and from the controller of the custom Visualforce page used for the Survey Response. This centralizes the logic for maintainability and reusability.References: Apex Developer Guide - Apex Triggers