Plat-Dev-201 practice question 29 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: 204 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 step in troubleshooting any asynchronous Apex job, including a Batch Apex job, is to check its status on the Apex Jobs page in Setup. This page provides a high-level overview of the job's execution, including its status (e.g., Queued, Processing, Failed, Completed), the number of batches processed, and any error messages. This initial check confirms if the job is failing or getting stuck and provides the context needed for deeper investigation, such as reviewing specific debug logs.

Why Incorrect

B. While debug logs are useful, the Apex Jobs page is the primary monitoring tool and the logical first step to get the job's overall status.
C. Disabling and recreating the job is a potential remediation step, not a troubleshooting step. You must first diagnose the problem.
D. Decreasing the batch size is a common solution for timeout issues, but it is a corrective action taken after troubleshooting, not the first diagnostic step.

References

1. Salesforce Apex Developer Guide. (2023). 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 lists all Apex jobs..."

2. Salesforce Apex Developer Guide. (2023). Monitoring Asynchronous Apex. "You can monitor the status of asynchronous Apex jobs on the Apex Jobs page."

Scroll to Top