CRT-450 practice question 12 of 30

A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing. What is the first step towards troubleshooting the issue?

Full set: 201 questions
Answer options
A: Check the asynchronous job monitoring page to view the job status and logs. Correct answer
B: Check the debug logs for the batch job.
C: Disable the batch job and recreate it with a smaller number of records.
D: Decrease the batch size to reduce the load on the system.
Correct Answer:
A. Check the asynchronous job monitoring page to view the job status and logs.
Explanation

The first and most fundamental step in troubleshooting any asynchronous Apex job, including a Batch Apex job, is to check its status on the Asynchronous Jobs monitoring page. This page, found in Salesforce Setup, provides a high-level overview of all asynchronous processes. It displays the job's status (e.g., Processing, Completed, Failed, Aborted), the number of batches processed, and any specific error messages. This initial check is essential to confirm the failure and get the primary error details before proceeding to more granular diagnostics like analyzing specific debug logs.

References

1. Salesforce Apex Developer Guide, "Monitoring Batch Apex": "To monitor or stop the execution of a batch Apex job, from Setup, enter Apex Jobs in the Quick Find box, then select Apex Jobs. The Apex Jobs page is the standard first stop for diagnosing issues with asynchronous Apex. It shows you the status, who submitted the job, and if there was a failure, the error message."

2. Salesforce Apex Developer Guide, "Batch Apex": The guide details the structure and execution of batch jobs. Troubleshooting guidance consistently points to the Apex Jobs page as the starting point for monitoring. The need to adjust batch size (Option D) is discussed as a way to manage governor limits, a diagnosis that would follow an initial investigation starting from the monitoring page.

3. Trailhead, "Asynchronous Apex" Module, "Monitor Asynchronous Apex" Unit: "The easiest way to monitor your asynchronous jobs is to go to the Apex Jobs page in Setup. This page lists all asynchronous Apex jobs... For each job, you can view its status, who submitted it, and other details." This reinforces that the monitoring page is the primary and initial tool for investigation.

Scroll to Top