Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 12 Topic 2 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 12 Topic 2 Discussion

PDII Exam Topic 2 Question 12 Discussion:
Question #: 12
Topic #: 2

PDII Question 12

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?


A.

Use a Map to cache the results of the Region._c query by Id.


B.

Move the Region__c query to outside the loop.


C.

Use a Map accountMap instead of List accountList.


D.

Remove the last line updating accountList as It Is not needed.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.