Practice SALESFORCE-PD1 Process Automation And Logic questions with full explanations on every answer.
Start practicing
Process Automation And Logic — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
A developer wants to chain a second asynchronous job from within an executing Queueable Apex job. Which method should be used?
2A developer writes an Apex trigger that performs a SOQL query inside a standard for-loop processing Trigger.new. Which governor limit is most likely to be exceeded?
3In what order does Salesforce execute system validation rules relative to Before Triggers during an insert operation?
4Which context variable should a developer use in an Apex trigger to determine if the trigger was fired by an update operation rather than an insert?
5An asynchronous method needs to be invoked from a standard trigger to perform callouts to an external web service. Which annotation is required for this asynchronous method?
6A developer implements a Schedulable class to run a daily cleanup job. What is the maximum number of scheduled Apex jobs that can be simultaneously active in an org?
7A developer needs to execute logic before a record is saved to the database, with the ability to modify field values on the same record without issuing a DML statement. Which trigger event should be used?
8A developer needs to process 2 million records asynchronously, performing complex calculations and updating parent records in batches of 2,000. Which feature should the developer implement?
9What is the maximum CPU time limit for a synchronous Apex transaction in a developer edition org?
10In the order of execution, when are custom validation rules evaluated relative to Before Triggers?
11Which context variable in an Apex trigger contains the old map of records for update operations?
12When should a developer choose Flow Builder over an Apex Trigger for business automation?
13A developer needs to pass a custom SObject record with related child lists into an asynchronous execution context. Which asynchronous Apex feature supports passing non-primitive types such as custom Apex objects or sObject collections?
14A developer wrote a batch job that encounters unhandled exceptions on specific records. To ensure that processing of other records continues despite errors in a chunk, what parameter should be configured in the start method or execution?
15Which best practice should be followed when writing Apex triggers to ensure bulkification?
16Which tool provides a declarative alternative to Apex triggers for creating records when another record is created?
17A developer needs to execute a batch job every Sunday at midnight. Which interface must the scheduling class implement?
18An Apex trigger needs to prevent deletion of Account records that have related active Contacts. When should this check occur?
19A Queueable Apex job implements Database.AllowsCallouts and chains another Queueable job. What is the maximum number of jobs that can be chained in a single transaction chain?
20What is the primary benefit of using Flow Builder over Apex triggers when implementing simple field validations?
21Which method is used in an Apex trigger to display a custom error message on a specific record during a before insert event?
22A developer encounters a 'System.AsyncException: Maximum queueable jobs added to the queue' error. What caused this exception?
23A developer needs to execute a lightweight background task that does not require complex chaining or monitoring. Which asynchronous feature is easiest to implement for a single method call?
24In an after insert trigger on the Account object, a developer attempts to modify a field on Trigger.new[0] and performs an update DML statement. What happens?
25A developer implements a Queueable class that makes callouts and needs to test it using Test.startTest() and Test.stopTest(). When does the asynchronous queueable job execute during a unit test?
26Which trigger event handles the restoration of records from the Recycle Bin?
27A batch Apex class processes 50,000 records. During the execute method, a custom governor limit is approached. Which method can the developer call to check the remaining CPU time dynamically?
28What is the maximum number of batch Apex jobs that can be queued or active concurrently in the Apex flex queue?
29When should a developer use a record-triggered flow instead of a scheduled path in a flow?
30An enterprise application requires real-time integration where outgoing callouts must be triggered from an Apex trigger. What architectural pattern must the developer use?
31A developer has a trigger that updates related child records. To prevent recursive trigger execution when updates ripple through child triggers, what is a standard best practice design pattern?
32Which feature allows administrators to invoke an Apex method from a Flow?
33A developer needs to write a test class for a Batch Apex job. Which method must be called to verify that the batch job executes correctly?
34A developer needs to ensure that a custom logging operation runs asynchronously and can be monitored using job IDs. Which interface is best suited?
35What is a key advantage of using Queueable Apex over future methods?
36Which context variable should be used in an after update trigger to compare old field values with new field values?
37In the Salesforce order of execution, when are assignment rules evaluated relative to Apex triggers?
38A developer writes a Queueable Apex job that queries 50,000 records, performs calculations, and updates them. During testing, the job hits a heap size limit. What is the standard asynchronous heap size limit in Apex?
39A developer needs to abort a scheduled Apex job programmatically from within a test class or maintenance script. Which method should be used?
40Which TWO actions can be performed inside a before insert Apex trigger without causing a runtime exception? (Choose two.)
41Which TWO tools or features should a developer consider when choosing between Flow Builder and Apex for business logic automation? (Choose two.)
42Which THREE statements are true regarding asynchronous Apex governor limits and execution behavior? (Choose three.)
43Which THREE limitations apply when writing Future methods in Apex? (Choose three.)
44Which TWO features are characteristic of Flow Builder compared to Apex triggers? (Choose two.)
45Which THREE actions can cause a governor limit exception during a poorly optimized trigger execution? (Choose three.)
46Which TWO triggers are executed during a record merge operation in Salesforce? (Choose two.)
47Which TWO best practices should developers follow when implementing Queueable Apex chaining? (Choose two.)
48A developer needs to execute lightweight asynchronous logic that is chainable and allows passing complex objects to the background job. Which asynchronous feature should the developer implement?
49A developer has written a Before Insert trigger on the Contact object that needs to validate user input and potentially prevent the record from saving. Which method on the Trigger context or record instance should the developer use to flag an error?
50During the Salesforce save order of execution, when are before triggers executed relative to custom validation rules?
51An enterprise application requires nightly execution of an Apex class that processes records across multiple objects. Which interface must the Apex class implement?
52A developer is implementing a Batch Apex class to process 500,000 Contact records. Which method defines the starting point and retrieves the records to be processed?
53A developer creates a Trigger on the Account object that performs a SOQL query inside a for loop. While testing with bulk data operations, the developer encounters a governor limit exception. Which limit is most likely exceeded?
54A developer has a requirement to update child Case records whenever a parent Account's status changes. The logic requires complex looping, exception handling, and handling up to 10,000 related records. Which tool should the developer choose according to Salesforce best practices?
55A developer needs to invoke an asynchronous method from a standard synchronous Apex trigger. The asynchronous method must be annotated with which keyword?
56A developer implements a Queueable class that makes an external REST callout. The developer needs to test this class using Test.startTest() and Test.stopTest(). What is required for the callout to succeed in the test method?
57Which trigger context variable returns a map of IDs to the new versions of the sObject records?
58An architect is designing an automation solution and wants to decide between a Record-Triggered Flow and an Apex Trigger. Which scenario heavily favors choosing an Apex Trigger?
59A developer writes a trigger that calls a future method. Inside the same transaction, the trigger also performs a DML operation on records that are referenced by the future method. What exception might occur?
60What is the maximum number of asynchronous batch jobs that can be queued or active concurrently in the Flex Queue?
61A developer needs to ensure that an Apex trigger fires only during the after insert context. Which check should be placed at the beginning of the trigger body?
62A developer is writing a Queueable class that needs to make a callout and also perform a DML operation afterward in the same transaction. Which interface must be added to the Queueable class definition?
63Which trigger context variable is available exclusively in before insert, before update, and before delete triggers to modify field values?
64What is the synchronous governor limit for the total number of SOQL queries issued in a single Apex transaction?
65When should a developer choose Flow Builder over Apex for implementing business automation logic?
66A developer has a trigger that updates parent Account records when Child Contacts are modified. To prevent infinite recursion, the developer uses a static boolean variable in a helper class. What is a key limitation of using static variables for recursion control in Salesforce?
67A developer needs to run a batch job that queries records and updates them. What is the default batch size if no optional batch size parameter is specified in Database.executeBatch()?
68During the execution of a trigger, an unhandled exception occurs in an after update trigger. What happens to the database transaction?
69Which interface enables an Apex class to be invoked from a Flow using the InvocableAction framework?
70A developer has a requirement to perform a callout to an external ERP system immediately when an Opportunity reaches Closed Won. The developer decides to use a future method from an after update trigger. What is a primary architectural limitation of this approach?
71A developer needs to write a unit test for a Queueable Apex class. How should the developer verify that the Queueable job executed successfully?
72Which governor limit applies to the total CPU time in a single synchronous Apex transaction?
73A 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?
74A developer writes an Apex trigger that performs a DML operation on Account records. The Account has a Roll-Up Summary field calculated from child Contact records. What happens during the order of execution regarding roll-up summary field calculations?
75A developer is designing a complex data validation and transformation process. Which TWO scenarios are best implemented using an Apex Trigger rather than a Record-Triggered Flow? (Choose TWO.)
76A developer needs to write a Batch Apex class that processes records and ensures atomicity per batch chunk. Which TWO statements are true regarding Database.Batchable execution and error handling? (Choose TWO.)
77Which TWO best practices should a developer follow when writing bulkified Apex triggers? (Choose TWO.)
78A developer is analyzing the Salesforce order of execution for a record update. Which TWO events occur AFTER custom validation rules are evaluated? (Choose TWO.)
79A developer is choosing between Future methods and Queueable Apex. Which TWO characteristics are unique to Queueable Apex? (Choose TWO.)
80Which THREE limitations apply to Apex Triggers? (Choose THREE.)
81A developer is designing an asynchronous architecture using Batch Apex. Which THREE considerations must be kept in mind regarding Batch Apex behavior? (Choose THREE.)
82A developer needs to schedule an Apex class to run weekly. Which THREE elements are required to implement Schedulable Apex? (Choose THREE.)
83Which THREE trigger context variables are available ONLY in insert and update triggers (not delete triggers)? (Choose THREE.)
84When comparing Flow Builder decision points and Apex trigger logic, which THREE statements are valid design considerations? (Choose THREE.)
85A developer is troubleshooting a transaction that exceeds governor limits due to SOQL queries. Which THREE techniques help prevent hitting SOQL query limits in Apex? (Choose THREE.)
86A developer needs to execute logic before a record is inserted into the Database to validate field values and prevent invalid records from saving. Which trigger event should the developer use?
87A developer has written a trigger on the Account object that performs a SOQL query inside a for-loop. The developer notices that when a data load of 200 records occurs, governor limits are exceeded. What is the most efficient way to refactor this trigger?
88A developer creates an Apex trigger that updates related Contact records whenever an Account record is updated. The trigger performs a DML operation on the Contacts. During testing, updating an Account causes the trigger to fire infinitely and throw a System.LimitException: Maximum trigger depth exceeded. Which design pattern should the developer implement to prevent this recursion?
89A developer needs to invoke a long-running external web service callout from an existing scheduled Apex job that implements the Schedulable interface. What is the correct approach to implement this callout?
90During the Salesforce order of execution, when are validation rules evaluated relative to before triggers?
91A developer needs to process 500,000 records daily and update a custom field based on complex business logic. Which asynchronous Apex feature is specifically designed to handle large batch data processing with flexible scope sizes and built-in transaction monitoring?
92A developer has a requirement to pass a complex SObject list containing parent and child records into an asynchronous method for further processing. Which asynchronous feature supports passing non-primitive data types such as Lists of SObjects?
93A developer needs to ensure that a specific Apex method runs asynchronously because it makes a callout to an external REST API from a standard user interface controller. Which annotation must be added to the method?
94A developer needs to chain multiple asynchronous jobs sequentially where Job B must run only after Job A finishes successfully. Which interface should the developer use to achieve this?
95When evaluating whether to use Flow Builder or an Apex trigger for record automation, which scenario best justifies choosing an Apex trigger over a Record-Triggered Flow?
96A developer has a Queueable Apex job that needs to query large volumes of data and perform updates. To optimize performance and avoid heap size limits, what is the best practice when querying records inside a Queueable Apex job?
97A developer needs to schedule an Apex class to run weekly. Which syntax correctly schedules the job using System.schedule?
98A developer implements a Batch Apex class that updates millions of records. During the execution of the execute method, a transient database error occurs on a single record. What happens to the batch job by default if Database.executeBatch is called without additional parameters?
99Which trigger context variable should a developer use to access the map of old record versions prior to the update operation?
100When should a developer choose a Record-Triggered Flow over an Apex trigger for automating record updates before save?
101Which governor limit applies specifically to the total number of asynchronous Apex executions (such as future methods and queueable jobs) enqueued in a 24-hour period for an Enterprise Edition org?
102A developer has an Apex trigger that fires on Account update. Inside the trigger, it calls a future method to update related Contact records. During testing with 150 Account records modified simultaneously, the developer receives a System.LimitException: Too many future calls. What is the cause of this exception?
103A developer is writing an Apex trigger and needs to ensure proper bulkification. Which TWO practices should the developer follow to avoid governor limits? (Choose two.)
104During the Salesforce order of execution, which THREE actions occur AFTER the system executes 'after' triggers? (Choose three.)
105Which TWO statements are true regarding Queueable Apex compared to future methods? (Choose two.)
106When should a developer choose to implement Schedulable Apex? (Choose two.)
107Which THREE statements are accurate regarding asynchronous Apex governor limits and best practices? (Choose three.)
108Which TWO criteria help a developer decide between using a Record-Triggered Flow and an Apex Trigger? (Choose two.)
109A developer is troubleshooting a Batch Apex job that fails intermittently. Which THREE methods or properties are part of the Database.BatchableContext interface available in batch execution? (Choose three.)
110A developer needs to execute long-running computations that require complex chaining and the ability to pass non-primitive data types to the job. Which asynchronous feature should the developer implement?
111An Apex trigger needs to update fields on the same record that is currently being inserted in a Before Insert trigger context. How should the developer implement this update?
112A developer is evaluating whether to use a Record-Triggered Flow or an Apex Trigger for a new automation requirement that involves complex callouts to an external system and heavy database operations. Which architectural guideline should the developer follow?
113In the Salesforce Order of Execution, when are validation rules evaluated relative to Apex triggers?
114A developer has written a Batch Apex class to process millions of records. During execution, some transactions fail due to temporary external web service timeouts. What is the standard behavior of Batch Apex when an unhandled exception occurs in a batch execution?
115A developer needs to schedule a class to run nightly at midnight to clean up stale audit records. Which interface must the class implement?
116Which TWO actions are valid best practices when writing robust Batch Apex classes to adhere to governor limits and maintain data integrity? Choose 2 options.
117A developer implemented a Queueable Apex class that performs heavy processing. During testing, the developer wants to verify whether the asynchronous job has finished executing before running dependent unit test assertions. What should the developer use?
118A developer is troubleshooting an Apex trigger recursion issue where an update operation triggers itself infinitely. Which THREE strategies can the developer use to safely prevent this recursion? Choose 3 options.
119A developer is writing a Batch Apex class to update 50,000 records. Which method must be implemented to define the scope of records to be processed?
120When using a @future method, what data type is allowed as a parameter?
121A developer needs to chain asynchronous jobs. Which interface allows for a single job to be queued from within the execution of another?
122A developer needs to execute logic after a record is inserted into the database but before the database commits the transaction. Which trigger event is most appropriate?
123Which trigger context variable should be used to check if a trigger is running in a before-insert context?
124A developer needs to call an external web service from an Apex trigger. Why must this be done asynchronously?
125In the order of execution, when do record-triggered flows that are configured to run 'before' the record is saved execute?
126What is the result of using a recursive trigger without a proper exit condition?
127A developer needs to access the old values of a record in an Apex trigger. Which collection provides this?
128What is the primary benefit of using a Flow over an Apex trigger for simple field updates?
129A developer is building a solution that requires complex branching logic. When should the developer choose Apex over Flow?
130A developer wants to schedule an Apex class to run daily. Which interface must the class implement?
131Which type of Apex class is best suited for performing complex calculations on large data sets that must run overnight?
132What is the maximum number of asynchronous Apex jobs that can be queued in a 24-hour period in a Developer Edition org?
133When a record-triggered flow performs an action that causes a trigger to fire, which order of execution phase is this?
134Which governor limit is associated with the total number of SOQL queries issued in a single synchronous transaction?
135Which of the following describes the behavior of a static variable in Apex?
136Which tool is best for automating a process that requires UI interaction, such as a wizard screen?
137Which TWO statements are true about the Apex order of execution?
138Which THREE items are valid considerations when designing Batch Apex?
139Which TWO of the following are valid ways to chain asynchronous Apex?
140A developer needs to update a related record. If using Apex, what is the best practice to avoid hitting governor limits?
141Which THREE limitations apply to @future methods?
142Which TWO of the following statements about Trigger.new and Trigger.old are accurate?
143Which THREE of the following are valid uses for the Database.executeBatch method parameters?
144Which TWO tools are effective for monitoring asynchronous Apex jobs?
145Which THREE criteria are best suited for choosing an Apex Trigger over a Flow?
The Process Automation And Logic domain covers the key concepts tested in this area of the SALESFORCE-PD1 exam blueprint published by Salesforce. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all SALESFORCE-PD1 domains — no account required.
The Courseiva SALESFORCE-PD1 question bank contains 145 questions in the Process Automation And Logic domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Process Automation And Logic domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included