ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 247 - Certified Data Architect discussion

Report
Export

Universal Containers uses Apex jobs to create leads in Salesforce. The business team has requested that lead creation failures should be reported to them.

Which option does Apex provide to report errors from this Apex job?

A.
Use Custom Object to store leads, and allow unprocessed leads to be reported.
Answers
A.
Use Custom Object to store leads, and allow unprocessed leads to be reported.
B.
Save Apex errors in a custom object, and allow access to this object for reporting.
Answers
B.
Save Apex errors in a custom object, and allow access to this object for reporting.
C.
Use Apex services to email failures to business when error occurs.
Answers
C.
Use Apex services to email failures to business when error occurs.
D.
Use AppExchange package to clean lead information before Apex job processes them.
Answers
D.
Use AppExchange package to clean lead information before Apex job processes them.
Suggested answer: C

Explanation:

saving Apex errors in a custom object can be a way to report errors from an Apex job. The article provides an example of how to create a custom object called AsyncApexError__c and use a trigger to insert error records into it. The custom object can then be used for reporting or notification purposes.

asked 23/09/2024
Ayanda Zwane
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first