PDII Exam Question 96

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?
  • PDII Exam Question 97

    A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?
  • PDII Exam Question 98

    Which annotation exposes an Apex class as a RESTful neb service?
  • PDII Exam Question 99

    Exhibit:

    Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers
  • PDII Exam Question 100

    A developer has created the following trigger: trigger ProcessDoNotCall on Contact (after update) { List<Contact> lstCon = [SELECT Id, DoNotCall, Department FROM Contact WHERE Department = 'HR' AND Id IN :Trigger.new]; for(Contact c : lstCon) c.DoNotCall= true; update lstCon; } The developer executes the following code anonymously in the Developer Console. Assume that the record exists in Salesforce.
    Contact con = new Contact(Id='003oOOOOOOVHXOm',Department = 'HR') update con; Which behavior will the developer observe?