SALESFORCE-PD1 Process Automation And Logic Practice Question
A developer is troubleshooting a Batch Apex job where records are failing to update intermittently due to record locking contention with concurrent updates. What is the recommended strategy to mitigate record locking?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Process records in smaller batch sizes and ensure parent records are sorted or processed in a deterministic order.
Sorting records in the start method query using FOR UPDATE or structuring batches by parent groups can reduce locking, and processing smaller batch sizes can also help.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the batch size to the maximum of 2,000 to complete faster.
Why it's wrong here
Larger batch sizes hold locks on more records simultaneously, increasing contention.
- ✓
Process records in smaller batch sizes and ensure parent records are sorted or processed in a deterministic order.
Why this is correct
Smaller batch sizes reduce the window of record locks held simultaneously.
- ✗
Convert the batch job into a synchronous trigger.
Why it's wrong here
Synchronous triggers would worsen locking during high-volume bulk updates.
- ✗
Disable all validation rules on the object permanently.
Why it's wrong here
Disabling validation rules is a poor practice and does not solve record locking caused by concurrent DML.
About these practice questions
Courseiva writes every SALESFORCE-PD1 question from scratch — 488 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Salesforce exam blueprint
This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SALESFORCE-PD1 exam.