Courseiva

SALESFORCE-PLATFORM-DEVELOPER-II · domain

Process Automation, Logic, and Integration

Practise Salesforce Certified Platform Developer II Process Automation, Logic, and Integration practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

33 questions4 easy16 medium13 hard

Focused practice

Practice Process Automation, Logic, and Integration 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, Logic, and Integration

Process Automation, Logic, and Integration 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, Logic, and Integration 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, Logic, and Integration questions (33)

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

1

A financial services organization is building a high-volume custom REST API endpoint using Apex to handle incoming transactions from an external core banking system. The integration must ensure strict data integrity, handle partial batch failures gracefully, and process up to 200 records per request. Which TWO practices must the developer implement to satisfy these requirements? Choose 2 answers.

Hard
2

A developer is writing a test class for an Apex trigger that creates a related record when an Account is inserted. The test must verify that the related record is created and that a validation rule prevents creation when the Account's AnnualRevenue is null. What is the best practice to ensure the test covers both scenarios?

Medium
3

A developer is designing a Platform Event-driven integration where an external system publishes order events and Apex subscribers update Order records. The team wants to guarantee that a transient downstream outage does not silently drop events, while also preventing duplicate order updates when the same event is redelivered. (Choose two.)

Hard
4

A developer is writing a test class for an integration service. Which approach is required to test HTTP callouts without actually making a request to the external system?

Medium
5

A developer is writing a test class for an Apex trigger that updates a related Contact when an Account's BillingCity changes. The trigger handler uses a SOQL query to fetch related Contacts. What is the recommended way to ensure the test class covers the trigger logic without hitting governor limits?

Medium
6

A developer must run a scheduled job that recalculates account health scores every night, but the calculation must also be triggered immediately whenever an Account record is updated during business hours. The calculation logic is already encapsulated in a Queueable class named HealthScoreQueueable. Which design meets both requirements with the least duplication and stays within platform limits?

Hard
7

A developer needs to write an Apex test class for a service that makes a callout to an external REST API. The test must simulate different HTTP response codes, including 200, 404, and 500. Which approach should the developer use to ensure the test covers all scenarios without making actual callouts?

Medium
8

An organization wants to implement an orchestration layer that manages complex business processes spanning multiple objects and external systems. Which tool is most appropriate for managing stateful, long-running processes?

Hard
9

A developer is building a Flow that must invoke an external REST service to retrieve a customer's loyalty points. The external service requires a callout with a JSON body and returns a JSON response. The developer wants to use an External Service to simplify the integration. Which step must be completed before the Flow can use the External Service?

Medium
10

A developer is building a complex asynchronous process using Queueable Apex. The process needs to make a callout to an external service, then update records based on the response. The developer implements the callout in the execute method of the Queueable class. During testing, the developer receives a 'CalloutException: Unauthorized endpoint' error. What should the developer do to resolve this?

Hard
11

A company requires that an integration log all outbound API requests for auditing purposes, including the full request and response body. Given the potential for high volumes, which implementation is most efficient and compliant?

Hard
12

A developer is designing a solution where an external system must be notified in near real-time when a custom object record is created or updated. The external system exposes a REST endpoint that accepts JSON payloads. The solution must be scalable and minimize Salesforce governor limit consumption. Which approach is most appropriate?

Medium
13

An enterprise application requires integrating an external REST service that processes high-volume transactions asynchronously. The integration framework must handle potential connection timeouts and ensure robust error logging. Which implementation strategy meets these architectural requirements?

Medium
14

A developer is writing a test class for a service that performs a callout to an external web service. The developer needs to mock the callout response to test different scenarios without making actual HTTP requests. Which interface should the developer implement to mock the callout?

Easy
15

A developer is integrating Salesforce with an external ERP using a REST API. The ERP requires that each request include a unique correlation ID for tracing. The developer implements an Apex callout that sends the correlation ID in a custom HTTP header. During testing, the callout succeeds, but the ERP logs show that the correlation ID is missing. What is the most likely cause?

Medium
16

A developer is implementing a complex business process that requires calling an external web service, then updating multiple related records, and finally sending an email. The entire process must be atomic; if any step fails, all changes must be rolled back. Which approach should the developer use?

Hard
17

A developer is creating a REST API endpoint in Salesforce that external systems will call to create Case records. The external system sends a JSON payload with a custom header 'X-API-Key' for authentication. The developer needs to validate this key against a custom setting before processing the request. Which Apex class should the developer use to implement this endpoint?

Medium
18

A developer is building an Apex REST service that external systems will call to create records in Salesforce. The service must enforce field-level security (FLS) and sharing rules for the running user. Which approach should the developer take to ensure these security requirements are met?

Medium
19

A developer is writing a test class for an Apex trigger that fires on Account insert and update. The trigger makes a callout to an external service to validate the account's billing address. The test class uses Test.setMock to mock the callout. However, when running the test, the callout is still attempted and fails with a 'Callout not allowed from test method' error. What is the most likely cause?

Hard
20

A developer is writing a complex asynchronous batch Apex job that processes millions of financial transaction records. The job needs to maintain running totals across batches and update a summary logging record upon completion. Which mechanism allows state to be accurately preserved across individual executeBatch transactions?

Hard
21

Refer to the exhibit. An integration is failing when a guest user tries to access a public-facing API. What is the most likely cause, and how should it be addressed?

Medium
22

A developer is implementing a Queueable Apex job that makes a callout to an external REST service and then updates records in Salesforce. The job must handle failures gracefully and allow chaining to a second job if needed. Which two practices should the developer follow? (Choose two.)

Hard
23

A developer needs to write an Apex test class for a service that makes a callout to an external REST API. The test method must simulate the callout response without making an actual HTTP request. Which approach should the developer use?

Easy
24

A developer is building a Lightning web component that needs to retrieve a large dataset from a custom object and display it in a paginated table. The component must minimize the number of server round-trips and adhere to Salesforce governor limits. Which approach should the developer use?

Medium
25

A developer needs to write a SOQL query that retrieves all Account records with their related Opportunities, but only Opportunities that are in the 'Closed Won' stage. Which SOQL query correctly achieves this?

Easy
26

An architect needs to expose custom Apex business logic as a RESTful web service that accepts complex JSON payloads containing polymorphic relationships. Which annotation and method signature combination should a developer use to implement this endpoint?

Medium
27

A developer is designing a solution to process large volumes of incoming JSON data from an external system. The data must be transformed and loaded into multiple related custom objects. The processing must handle up to 1 million records per day and be resilient to failures. Which combination of features should the developer use to meet these requirements?

Hard
28

Refer to the exhibit. The service is failing because the external system requires a specific 'Content-Type' header that is missing. Which addition to the code will correctly resolve this issue?

Medium
29

A developer is building a Lightning web component that needs to display a list of accounts with their related contacts. The component uses a wire adapter to call an Apex method that returns a list of Account objects with a nested list of Contacts. The developer notices that the contacts are not displayed, and the Apex method returns the accounts correctly. What is the most likely cause?

Hard
30

A developer must write a test method for an Apex service that performs an HTTP callout to a shipping-rate API. The test must not reach the external service and must assert that the service handles a successful response. Which approach is required?

Easy
31

An enterprise application requires integrating an external REST API that frequently times out. A developer needs to implement a robust outbound callout mechanism in Apex that handles asynchronous execution while supporting complex retry policies and transactional state management. Which architectural approach best meets these requirements?

Medium
32

A business process requires that when a high-value Opportunity is closed, an external ERP system is notified via an event-driven architecture. Which solution provides the most decoupled and scalable integration pattern?

Medium
33

Refer to the exhibit. An Apex trigger is failing during a mass update of records. The developer identifies that the SOQL query is inside a loop. Which pattern must be applied to fix this error while maintaining the required functionality?

Hard

Frequently asked questions

What does the Process Automation, Logic, and Integration domain cover on the SALESFORCE-PLATFORM-DEVELOPER-II exam?
Process Automation, Logic, and Integration 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 33 Process Automation, Logic, and Integration questions in the SALESFORCE-PLATFORM-DEVELOPER-II 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, Logic, and Integration questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
salesforce-platform-developer-ii SALESFORCE-PLATFORM-DEVELOPER-II process automation logic integration Practice Questions