PDII Exam Question 11

A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.

The callousUtil.makeRestCallout fails with a "You have uncommitted work pending. Please commit or rollback before calling cut' error.
What should be done to address the problem?
  • PDII Exam Question 12

    When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:
    System.CalloutException: Unauthorized endpoint
    Which recommended approach should the developer implement
    to resolve the callout exception?
  • PDII Exam Question 13

    A developer has a test class that creates test data before making a mock callout but now receives a 'You have uncommitted work pending. Please commit or rollback before calling out' error.
    Which step should be taken to resolve the error?
  • PDII Exam Question 14

    A developer gets an error saying 'Maximum Trigger Depth Exceeded.'
    What is a possible reason to get this error message?
  • PDII Exam Question 15

    A company needs to automatically delete sensitive information after seven years.
    This could delete almost a million records every day.
    How can this be achieved?