Question 161

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2 answers
  • Question 162

    In which three areas can a Lightning component be used in the Lightning Experience? (Choose three.)
  • Question 163

    A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key__c is known.
    Which two statements enable the developer to save the records to the database without an Id? (Choose two.)
  • Question 164

    Which Apex collection is used to ensure that all values are unique?
  • Question 165

    A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?