nerdexam
Salesforce

PDII · Question #195

PDII Question #195: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #195. The question stem and answer options stay visible for context.

Question

A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails. What might be causing the failed assertion?

Options

  • AThe test class is not using System.runAs() to run tests as a Salesforce administrator
  • BThe test class has not re-queried the Account record after updating the Opportunity
  • CThe test class has not defined an Account owner when inserting the test data
  • DThe test class has not implemented seeAllData=true in the test method

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice