nerdexam
Salesforce

PDII · Question #385

Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex. What is the appropriate publish/subscribe logic to…

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

Question

Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex. What is the appropriate publish/subscribe logic to meet this requirement?

Options

  • APublish the error event using the addError() method and write a trigger to subscribe to the event
  • BPublish the error event using the addError() method and have the external system subscribe to the
  • CPublish the error event using the Eventbus.publish() method and have the external system
  • DHave the external system subscribe to the event channel. No publishing is necessary.

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