Which two changes s...
 
Notifications
Clear all

Which two changes should a developer make in this trigger to adhere to best practices?

1 Posts
1 Users
0 Likes
78 Views
Nathaniel
(@mcgruenathaniel)
Noble Member
Joined: 6 months ago
Posts: 383
Topic starter  

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

  • A . Use a Map accountMap instead of List accountList.
  • B . Use a Map to cache the results of the Region__c query by Id.
  • C . Move the Region__c query to outside the loop.
  • D . Remove the last line updating accountList as it is not needed.

Show Answer Hide Answer

Suggested Answer: C,D

   
Quote
Share: