Question 16

What are the ways a developer can create test data of Contacts? (Choose two.)
  • Question 17

    An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?
  • Question 18

    A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment.
    A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error.
    What should a developer do to fix the problem?
  • Question 19

    The following code segment is railed from a Trigger handler class from the Opportunity trigger:

    Which two changes should improve this code and make it more efficient? Choose 2 answers
  • Question 20

    Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called candidate as created with organization-wide default set to Private. A lookup on the Candidate object sets an employee as an the viewer user