ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 344 - Certified Platform Developer II discussion

Report
Export

The following code segment is railed from a Trigger handler class from the Opportunity trigger:

Which two changes should improve this code and make it more efficient? Choose 2 answers

A.
Move the DML outside of the for loop.
Answers
A.
Move the DML outside of the for loop.
B.
Move the SOQL to fetch the account record outside of the for loop.
Answers
B.
Move the SOQL to fetch the account record outside of the for loop.
C.
Move business logic inside the Opportunity trigger.
Answers
C.
Move business logic inside the Opportunity trigger.
D.
Use Triginstead.old instead of Trigger.new.
Answers
D.
Use Triginstead.old instead of Trigger.new.
Suggested answer: A, B
asked 23/09/2024
Marcin Cieślak
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first