ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 46 - Certified Platform Developer II discussion

Report
Export

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.
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.
Answers
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.
Answers
C.
Move the Region__c query to outside the loop.
D.
Remove the last line updating accountList as it is not needed.
Answers
D.
Remove the last line updating accountList as it is not needed.
Suggested answer: C, D
asked 23/09/2024
Chet Camlin
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first