Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam PDII All Questions
Exam PDII All Questions

View all questions & answers for the PDII exam

Salesforce Developers PDII Question # 50 Topic 6 Discussion

PDII Exam Topic 6 Question 50 Discussion:
Question #: 50
Topic #: 6

PDII Question 50

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.