Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Salesforce Certified Platform Developer II (PDII) · Salesforce
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
I choose C, because the debug logs can catch the below issues: Trigger recursion: If an Order__c record creation causes another update on Opportunity, which re-fires the trigger, causing another Order__c record. Automation Conflicts: The trigger might be running twice due to a combination of Workflow Rules, Process Builder, or other automation. Duplicate Trigger Logic: The trigger might lack a check to prevent multiple insertions. It's not A, due to this being inefficient because not all Sales Reps will trigger the issue every time. You'll be digging through logs for hours. Since the records insert correctly, there may not be any errors.
Answer is C. You probably won't receive any error or exception since the two workorders are inserted correctly. Probably a recursion error made by the opportunity update. It's best to add system.debug and check what is going on...
APEX CLASS UPDATE NOT PERMITTED IN PROD