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.
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.
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?
Hard2Which TWO criteria help a developer decide between using a Record-Triggered Flow and an Apex Trigger? (Choose two.)
Medium3Which TWO statements are true about the Apex order of execution?
Medium4A 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?
Medium5When 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?
Medium6A developer needs to invoke an asynchronous method from a standard synchronous Apex trigger. The asynchronous method must be annotated with which keyword?
Easy7A developer needs to schedule a class to run nightly at midnight to clean up stale audit records. Which interface must the class implement?
Easy8A 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?
Medium9Which of the following describes the behavior of a static variable in Apex?
Hard10Which type of Apex class is best suited for performing complex calculations on large data sets that must run overnight?
Medium11In the order of execution, when are custom validation rules evaluated relative to Before Triggers?
Medium12Which TWO best practices should a developer follow when writing bulkified Apex triggers? (Choose TWO.)
Medium13Which context variable should be used in an after update trigger to compare old field values with new field values?
Easy14A 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?
Easy15In the Salesforce Order of Execution, when are validation rules evaluated relative to Apex triggers?
Hard16What is the result of using a recursive trigger without a proper exit condition?
Easy17A 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?
Medium18A 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?
Medium19Which THREE criteria are best suited for choosing an Apex Trigger over a Flow?
Medium20A developer wants to chain a second asynchronous job from within an executing Queueable Apex job. Which method should be used?
Hard21Which 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?
Easy22A developer needs to execute a batch job every Sunday at midnight. Which interface must the scheduling class implement?
Medium23A 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?
Hard24In the order of execution, when do record-triggered flows that are configured to run 'before' the record is saved execute?
Easy25Which governor limit is associated with the total number of SOQL queries issued in a single synchronous transaction?
Easy26A developer is choosing between Future methods and Queueable Apex. Which TWO characteristics are unique to Queueable Apex? (Choose TWO.)
Medium27Which THREE limitations apply to Apex Triggers? (Choose THREE.)
Hard28A 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?
Medium29What is the primary benefit of using Flow Builder over Apex triggers when implementing simple field validations?
Easy30A 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?
Hard31A developer needs to ensure that a custom logging operation runs asynchronously and can be monitored using job IDs. Which interface is best suited?
Medium32Which context variable in an Apex trigger contains the old map of records for update operations?
Easy33A 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?
Hard34A 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?
Hard35When should a developer choose Flow Builder over an Apex Trigger for business automation?
Easy36What is the synchronous governor limit for the total number of SOQL queries issued in a single Apex transaction?
Easy37An 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?
Easy38When should a developer choose Flow Builder over Apex for implementing business automation logic?
Medium39A 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?
Medium40Which TWO triggers are executed during a record merge operation in Salesforce? (Choose two.)
Medium41What is the maximum CPU time limit for a synchronous Apex transaction in a developer edition org?
Hard42An Apex trigger needs to prevent deletion of Account records that have related active Contacts. When should this check occur?
Medium43A 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?
Easy44In what order does Salesforce execute system validation rules relative to Before Triggers during an insert operation?
Medium45What is the maximum number of batch Apex jobs that can be queued or active concurrently in the Apex flex queue?
Hard46Which trigger context variable is available exclusively in before insert, before update, and before delete triggers to modify field values?
Easy47During the execution of a trigger, an unhandled exception occurs in an after update trigger. What happens to the database transaction?
Hard48Which trigger context variable should be used to check if a trigger is running in a before-insert context?
Easy49A 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?
Hard50Which THREE items are valid considerations when designing Batch Apex?
Medium51A 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?
Medium52What is the primary benefit of using a Flow over an Apex trigger for simple field updates?
Easy53What is a key advantage of using Queueable Apex over future methods?
Easy54A 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?
Easy55A 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?
Easy56Which TWO features are characteristic of Flow Builder compared to Apex triggers? (Choose two.)
Easy57Which tool provides a declarative alternative to Apex triggers for creating records when another record is created?
Easy58A developer needs to call an external web service from an Apex trigger. Why must this be done asynchronously?
Medium59Which THREE statements are accurate regarding asynchronous Apex governor limits and best practices? (Choose three.)
Hard60An 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?
Medium61A 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?
Medium62A 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?
Easy63A 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.)
Hard64A developer is analyzing the Salesforce order of execution for a record update. Which TWO events occur AFTER custom validation rules are evaluated? (Choose TWO.)
Hard65Which THREE limitations apply when writing Future methods in Apex? (Choose three.)
Hard66A developer needs to access the old values of a record in an Apex trigger. Which collection provides this?
Hard67A 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?
Medium68Which method is used in an Apex trigger to display a custom error message on a specific record during a before insert event?
Easy69A 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?
Medium70A 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?
Easy71A developer needs to schedule an Apex class to run weekly. Which THREE elements are required to implement Schedulable Apex? (Choose THREE.)
Medium72In the Salesforce order of execution, when are assignment rules evaluated relative to Apex triggers?
Medium73In 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?
Medium74A 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?
Hard75Which TWO actions can be performed inside a before insert Apex trigger without causing a runtime exception? (Choose two.)
Medium76When using a @future method, what data type is allowed as a parameter?
Hard77A 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.)
Medium78Which feature allows administrators to invoke an Apex method from a Flow?
Easy79During the Salesforce order of execution, when are validation rules evaluated relative to before triggers?
Hard80A 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?
Medium81A 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?
Medium82Which TWO tools or features should a developer consider when choosing between Flow Builder and Apex for business logic automation? (Choose two.)
Medium83Which THREE actions can cause a governor limit exception during a poorly optimized trigger execution? (Choose three.)
Hard84What is the maximum number of asynchronous batch jobs that can be queued or active concurrently in the Flex Queue?
Easy85A developer needs to update a related record. If using Apex, what is the best practice to avoid hitting governor limits?
Medium86A developer wants to schedule an Apex class to run daily. Which interface must the class implement?
Medium87Which THREE trigger context variables are available ONLY in insert and update triggers (not delete triggers)? (Choose THREE.)
Medium88Which TWO statements are true regarding Queueable Apex compared to future methods? (Choose two.)
Medium89What is the maximum number of asynchronous Apex jobs that can be queued in a 24-hour period in a Developer Edition org?
Hard90When should a developer choose to implement Schedulable Apex? (Choose two.)
Medium91A 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?
Hard92Which interface enables an Apex class to be invoked from a Flow using the InvocableAction framework?
Easy93An enterprise application requires real-time integration where outgoing callouts must be triggered from an Apex trigger. What architectural pattern must the developer use?
Medium94Which TWO of the following are valid ways to chain asynchronous Apex?
Hard95Which THREE of the following are valid uses for the Database.executeBatch method parameters?
Hard96Which THREE limitations apply to @future methods?
Hard97A 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?
Hard98A 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?
Hard99A 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?
Hard100A 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?
Medium101A 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?
Medium102Which TWO tools are effective for monitoring asynchronous Apex jobs?
Medium103Which best practice should be followed when writing Apex triggers to ensure bulkification?
Easy104During the Salesforce save order of execution, when are before triggers executed relative to custom validation rules?
Hard105A 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?
Easy106Which THREE statements are true regarding asynchronous Apex governor limits and execution behavior? (Choose three.)
Hard107A 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?
Hard108A 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.)
Hard109A 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?
Hard110When a record-triggered flow performs an action that causes a trigger to fire, which order of execution phase is this?
Hard111Which 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?
Easy112A 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.
Hard113A developer encounters a 'System.AsyncException: Maximum queueable jobs added to the queue' error. What caused this exception?
Hard114Which governor limit applies to the total CPU time in a single synchronous Apex transaction?
Easy115A 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?
Medium116A developer needs to chain asynchronous jobs. Which interface allows for a single job to be queued from within the execution of another?
Hard117Which trigger context variable should a developer use to access the map of old record versions prior to the update operation?
Easy118When should a developer use a record-triggered flow instead of a scheduled path in a flow?
Easy119A 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?
Hard120When should a developer choose a Record-Triggered Flow over an Apex trigger for automating record updates before save?
Medium121Which trigger event handles the restoration of records from the Recycle Bin?
Easy122A developer needs to abort a scheduled Apex job programmatically from within a test class or maintenance script. Which method should be used?
Hard123Which TWO best practices should developers follow when implementing Queueable Apex chaining? (Choose two.)
Medium124An 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?
Medium125A 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?
Hard126Which TWO actions are valid best practices when writing robust Batch Apex classes to adhere to governor limits and maintain data integrity? Choose 2 options.
Hard127A 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?
Hard128A developer is building a solution that requires complex branching logic. When should the developer choose Apex over Flow?
Medium129Which TWO of the following statements about Trigger.new and Trigger.old are accurate?
Medium130Which trigger context variable returns a map of IDs to the new versions of the sObject records?
Easy131A developer needs to schedule an Apex class to run weekly. Which syntax correctly schedules the job using System.schedule?
Medium132Which tool is best for automating a process that requires UI interaction, such as a wizard screen?
Easy133During the Salesforce order of execution, which THREE actions occur AFTER the system executes 'after' triggers? (Choose three.)
Hard134A 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?
Hard135An enterprise application requires nightly execution of an Apex class that processes records across multiple objects. Which interface must the Apex class implement?
Easy136A developer needs to write a unit test for a Queueable Apex class. How should the developer verify that the Queueable job executed successfully?
Medium137A 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.)
Medium138A 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.)
Hard139When comparing Flow Builder decision points and Apex trigger logic, which THREE statements are valid design considerations? (Choose THREE.)
Medium140A 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?
Medium141A 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()?
Medium142A 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?
Hard143A 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?
Hard144A 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?
Hard145A developer is designing an asynchronous architecture using Batch Apex. Which THREE considerations must be kept in mind regarding Batch Apex behavior? (Choose THREE.)
HardOther domains
All SALESFORCE-PD1 exam domains
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.