Salesforce
PDII · Question #378
PDII Question #378: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #378. The question stem and answer options stay visible for context.
Question
Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process, Universal Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropriate publish/subscribe logic to meet this requirement?
Options
- APublish the error event using the Eventbus.publish() method.
- BPublish the error event with a Flow.
- CPublish the error event using the addError() method.
- DNo publishing is necessary. Have the external system subscribe to the BatchApexErrorEvent.
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.