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 questionsThe 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.
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.
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."
Keep practicing
Take the free Plat-Dev-201 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Plat-Dev-201 practice questions
- Question 1Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightn…
- Question 2Which two statements are true about using the @testSetup annotation in an Apex test class…
- Question 3Managers at Universal Containers want to ensure that only decommissioned containers are a…
- Question 4Universal Containers has a Visualforce page that displays a table of every Container__c b…
- Question 5A developer is alerted to an issue with a custom Apex trigger that is causing records to …
- Question 6Which two operations affect the number of times a trigger can fire? Choose 2 answers
