Question 116

Exhibit:

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries
What is the correct way to fix this?

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries.
What is the correct way to fix this?
  • Question 117

    Business rules require a Contact to always be created when a new Account is created.
    What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?
  • Question 118

    Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.
    What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers
  • Question 119

    A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication.
    What code should the developer use to authenticate?
  • Question 120

    A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system.
    What is the optimal way to update the Accounts from the external system?