Courseiva

SALESFORCE-PD1 · domain

Process Automation And Logic

Practise Salesforce Certified Platform Developer I (SALESFORCE-PD1) Process Automation And Logic practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

145 questions38 easy56 medium51 hard

Focused practice

Practice Process Automation And Logic questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Process Automation And Logic

Process Automation And Logic questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Process Automation And Logic exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Question index

All Process Automation And Logic questions (145)

Click any question to see the full explanation, or start a practice session above.

1

A 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?

Hard
2

Which TWO criteria help a developer decide between using a Record-Triggered Flow and an Apex Trigger? (Choose two.)

Medium
3

Which TWO statements are true about the Apex order of execution?

Medium
4

A 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?

Medium
5

When 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?

Medium
6

A developer needs to invoke an asynchronous method from a standard synchronous Apex trigger. The asynchronous method must be annotated with which keyword?

Easy
7

A developer needs to schedule a class to run nightly at midnight to clean up stale audit records. Which interface must the class implement?

Easy
8

A 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?

Medium
9

Which of the following describes the behavior of a static variable in Apex?

Hard
10

Which type of Apex class is best suited for performing complex calculations on large data sets that must run overnight?

Medium
11

In the order of execution, when are custom validation rules evaluated relative to Before Triggers?

Medium
12

Which TWO best practices should a developer follow when writing bulkified Apex triggers? (Choose TWO.)

Medium
13

Which context variable should be used in an after update trigger to compare old field values with new field values?

Easy
14

A 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?

Easy
15

In the Salesforce Order of Execution, when are validation rules evaluated relative to Apex triggers?

Hard
16

What is the result of using a recursive trigger without a proper exit condition?

Easy
17

A 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?

Medium
18

A 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?

Medium
19

Which THREE criteria are best suited for choosing an Apex Trigger over a Flow?

Medium
20

A developer wants to chain a second asynchronous job from within an executing Queueable Apex job. Which method should be used?

Hard
21

Which 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?

Easy
22

A developer needs to execute a batch job every Sunday at midnight. Which interface must the scheduling class implement?

Medium
23

A 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?

Hard
24

In the order of execution, when do record-triggered flows that are configured to run 'before' the record is saved execute?

Easy
25

Which governor limit is associated with the total number of SOQL queries issued in a single synchronous transaction?

Easy
26

A developer is choosing between Future methods and Queueable Apex. Which TWO characteristics are unique to Queueable Apex? (Choose TWO.)

Medium
27

Which THREE limitations apply to Apex Triggers? (Choose THREE.)

Hard
28

A 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?

Medium
29

What is the primary benefit of using Flow Builder over Apex triggers when implementing simple field validations?

Easy
30

A 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?

Hard
31

A developer needs to ensure that a custom logging operation runs asynchronously and can be monitored using job IDs. Which interface is best suited?

Medium
32

Which context variable in an Apex trigger contains the old map of records for update operations?

Easy
33

A 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?

Hard
34

A 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?

Hard
35

When should a developer choose Flow Builder over an Apex Trigger for business automation?

Easy
36

What is the synchronous governor limit for the total number of SOQL queries issued in a single Apex transaction?

Easy
37

An 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?

Easy
38

When should a developer choose Flow Builder over Apex for implementing business automation logic?

Medium
39

A 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?

Medium
40

Which TWO triggers are executed during a record merge operation in Salesforce? (Choose two.)

Medium
41

What is the maximum CPU time limit for a synchronous Apex transaction in a developer edition org?

Hard
42

An Apex trigger needs to prevent deletion of Account records that have related active Contacts. When should this check occur?

Medium
43

A 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?

Easy
44

In what order does Salesforce execute system validation rules relative to Before Triggers during an insert operation?

Medium
45

What is the maximum number of batch Apex jobs that can be queued or active concurrently in the Apex flex queue?

Hard
46

Which trigger context variable is available exclusively in before insert, before update, and before delete triggers to modify field values?

Easy
47

During the execution of a trigger, an unhandled exception occurs in an after update trigger. What happens to the database transaction?

Hard
48

Which trigger context variable should be used to check if a trigger is running in a before-insert context?

Easy
49

A 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?

Hard
50

Which THREE items are valid considerations when designing Batch Apex?

Medium
51

A 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?

Medium
52

What is the primary benefit of using a Flow over an Apex trigger for simple field updates?

Easy
53

What is a key advantage of using Queueable Apex over future methods?

Easy
54

A 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?

Easy
55

A 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?

Easy
56

Which TWO features are characteristic of Flow Builder compared to Apex triggers? (Choose two.)

Easy
57

Which tool provides a declarative alternative to Apex triggers for creating records when another record is created?

Easy
58

A developer needs to call an external web service from an Apex trigger. Why must this be done asynchronously?

Medium
59

Which THREE statements are accurate regarding asynchronous Apex governor limits and best practices? (Choose three.)

Hard
60

An 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?

Medium
61

A 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?

Medium
62

A 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?

Easy
63

A 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.)

Hard
64

A developer is analyzing the Salesforce order of execution for a record update. Which TWO events occur AFTER custom validation rules are evaluated? (Choose TWO.)

Hard
65

Which THREE limitations apply when writing Future methods in Apex? (Choose three.)

Hard
66

A developer needs to access the old values of a record in an Apex trigger. Which collection provides this?

Hard
67

A 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?

Medium
68

Which method is used in an Apex trigger to display a custom error message on a specific record during a before insert event?

Easy
69

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?

Medium
70

A 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?

Easy
71

A developer needs to schedule an Apex class to run weekly. Which THREE elements are required to implement Schedulable Apex? (Choose THREE.)

Medium
72

In the Salesforce order of execution, when are assignment rules evaluated relative to Apex triggers?

Medium
73

In 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?

Medium
74

A 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?

Hard
75

Which TWO actions can be performed inside a before insert Apex trigger without causing a runtime exception? (Choose two.)

Medium
76

When using a @future method, what data type is allowed as a parameter?

Hard
77

A 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.)

Medium
78

Which feature allows administrators to invoke an Apex method from a Flow?

Easy
79

During the Salesforce order of execution, when are validation rules evaluated relative to before triggers?

Hard
80

A 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?

Medium
81

A 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?

Medium
82

Which TWO tools or features should a developer consider when choosing between Flow Builder and Apex for business logic automation? (Choose two.)

Medium
83

Which THREE actions can cause a governor limit exception during a poorly optimized trigger execution? (Choose three.)

Hard
84

What is the maximum number of asynchronous batch jobs that can be queued or active concurrently in the Flex Queue?

Easy
85

A developer needs to update a related record. If using Apex, what is the best practice to avoid hitting governor limits?

Medium
86

A developer wants to schedule an Apex class to run daily. Which interface must the class implement?

Medium
87

Which THREE trigger context variables are available ONLY in insert and update triggers (not delete triggers)? (Choose THREE.)

Medium
88

Which TWO statements are true regarding Queueable Apex compared to future methods? (Choose two.)

Medium
89

What is the maximum number of asynchronous Apex jobs that can be queued in a 24-hour period in a Developer Edition org?

Hard
90

When should a developer choose to implement Schedulable Apex? (Choose two.)

Medium
91

A 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?

Hard
92

Which interface enables an Apex class to be invoked from a Flow using the InvocableAction framework?

Easy
93

An enterprise application requires real-time integration where outgoing callouts must be triggered from an Apex trigger. What architectural pattern must the developer use?

Medium
94

Which TWO of the following are valid ways to chain asynchronous Apex?

Hard
95

Which THREE of the following are valid uses for the Database.executeBatch method parameters?

Hard
96

Which THREE limitations apply to @future methods?

Hard
97

A 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?

Hard
98

A 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?

Hard
99

A 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?

Hard
100

A 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?

Medium
101

A 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?

Medium
102

Which TWO tools are effective for monitoring asynchronous Apex jobs?

Medium
103

Which best practice should be followed when writing Apex triggers to ensure bulkification?

Easy
104

During the Salesforce save order of execution, when are before triggers executed relative to custom validation rules?

Hard
105

A 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?

Easy
106

Which THREE statements are true regarding asynchronous Apex governor limits and execution behavior? (Choose three.)

Hard
107

A 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?

Hard
108

A 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.)

Hard
109

A 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?

Hard
110

When a record-triggered flow performs an action that causes a trigger to fire, which order of execution phase is this?

Hard
111

Which 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?

Easy
112

A 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.

Hard
113

A developer encounters a 'System.AsyncException: Maximum queueable jobs added to the queue' error. What caused this exception?

Hard
114

Which governor limit applies to the total CPU time in a single synchronous Apex transaction?

Easy
115

A 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?

Medium
116

A developer needs to chain asynchronous jobs. Which interface allows for a single job to be queued from within the execution of another?

Hard
117

Which trigger context variable should a developer use to access the map of old record versions prior to the update operation?

Easy
118

When should a developer use a record-triggered flow instead of a scheduled path in a flow?

Easy
119

A 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?

Hard
120

When should a developer choose a Record-Triggered Flow over an Apex trigger for automating record updates before save?

Medium
121

Which trigger event handles the restoration of records from the Recycle Bin?

Easy
122

A developer needs to abort a scheduled Apex job programmatically from within a test class or maintenance script. Which method should be used?

Hard
123

Which TWO best practices should developers follow when implementing Queueable Apex chaining? (Choose two.)

Medium
124

An 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?

Medium
125

A 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?

Hard
126

Which TWO actions are valid best practices when writing robust Batch Apex classes to adhere to governor limits and maintain data integrity? Choose 2 options.

Hard
127

A 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?

Hard
128

A developer is building a solution that requires complex branching logic. When should the developer choose Apex over Flow?

Medium
129

Which TWO of the following statements about Trigger.new and Trigger.old are accurate?

Medium
130

Which trigger context variable returns a map of IDs to the new versions of the sObject records?

Easy
131

A developer needs to schedule an Apex class to run weekly. Which syntax correctly schedules the job using System.schedule?

Medium
132

Which tool is best for automating a process that requires UI interaction, such as a wizard screen?

Easy
133

During the Salesforce order of execution, which THREE actions occur AFTER the system executes 'after' triggers? (Choose three.)

Hard
134

A 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?

Hard
135

An enterprise application requires nightly execution of an Apex class that processes records across multiple objects. Which interface must the Apex class implement?

Easy
136

A developer needs to write a unit test for a Queueable Apex class. How should the developer verify that the Queueable job executed successfully?

Medium
137

A 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.)

Medium
138

A 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.)

Hard
139

When comparing Flow Builder decision points and Apex trigger logic, which THREE statements are valid design considerations? (Choose THREE.)

Medium
140

A 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?

Medium
141

A 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()?

Medium
142

A 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?

Hard
143

A 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?

Hard
144

A 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?

Hard
145

A developer is designing an asynchronous architecture using Batch Apex. Which THREE considerations must be kept in mind regarding Batch Apex behavior? (Choose THREE.)

Hard

Frequently asked questions

What does the Process Automation And Logic domain cover on the SALESFORCE-PD1 exam?
Process Automation And Logic questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 145 Process Automation And Logic questions in the SALESFORCE-PD1 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Process Automation And Logic questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
salesforce-pd1 SALESFORCE-PD1 process automation and logic Practice Questions