Praxis Academy
Home › Platform Integration Architect › Design Integration Solutions

Platform Integration Architect practice questions: Design Integration Solutions

Design Integration Solutions is 28% of the Salesforce Certified Platform Integration Architect exam. It covers integration patterns, APIs, events, Salesforce Connect, middleware and OAuth. Try these 21 free questions, then open each answer to see why every option is right or wrong.

01

A lending company's loan officers open a Loan Application record and must see the applicant's credit score from an external bureau before they can continue. The bureau's REST API typically responds in under two seconds. Which integration approach should the architect recommend?

  1. Publish a platform event when the record opens and let middleware write the score back later
  2. Schedule a nightly Bulk API 2.0 job that loads credit scores for all open applications
  3. Use a synchronous Apex callout from the component's controller through a Named Credential
  4. Configure an Outbound Message that sends the applicant ID to the bureau
Show answer

Answer: C

A. Publish a platform event when the record opens and let middleware write the score back laterFire and Forget would not give the officer the score while they wait on the page; the business process requires an immediate answer.
B. Schedule a nightly Bulk API 2.0 job that loads credit scores for all open applicationsA nightly batch makes the data stale and wastes calls on applications nobody opens; the officer needs a current score on demand.
C. Use a synchronous Apex callout from the component's controller through a Named Credential ✓Correct. Request and Reply fits: the user waits for a fast response, and the Named Credential handles the endpoint and authentication.
D. Configure an Outbound Message that sends the applicant ID to the bureauOutbound Messaging is one-way and asynchronous; it cannot return the score to the user's screen.

Why: Remote Process Invocation – Request and Reply is the right pattern when Salesforce must wait for a response from the remote system to complete a process, and the remote call is quick enough to happen in the user's transaction.

02

A distributor's ERP is the system of record for 4 million product price entries that change daily. Salesforce must hold the current prices so that quotes calculate correctly, and an update every night is acceptable. Which approach should the architect recommend?

  1. Have the ERP call the REST API sObject Collections resource for each changed price
  2. Expose the ERP price table through Salesforce Connect and reference it from quotes
  3. Use middleware or an ETL tool to load changes nightly with Bulk API 2.0 upserts on an external ID
  4. Publish a platform event from the ERP for every price change
Show answer

Answer: C

A. Have the ERP call the REST API sObject Collections resource for each changed pricesObject Collections handles up to 200 records per call, so millions of rows would consume a very large number of API calls.
B. Expose the ERP price table through Salesforce Connect and reference it from quotesQuote calculations and automation need local records; virtualized data adds callout latency and limits on processing.
C. Use middleware or an ETL tool to load changes nightly with Bulk API 2.0 upserts on an external ID ✓Correct. Batch Data Synchronization with Bulk API 2.0 is designed for large, scheduled loads and the external ID makes the upsert idempotent.
D. Publish a platform event from the ERP for every price changeMillions of daily events would be inefficient for a nightly-acceptable requirement and would need subscribers to write each record.

Why: Batch Data Synchronization fits when data can be refreshed on a schedule and volumes are large. Bulk API 2.0 processes records asynchronously in large jobs, and upsert on an external ID avoids duplicates on reruns.

03

A pharmaceutical company runs a nightly server process in its data center that must read and update Salesforce records. There is no user present to log in, and the security team forbids storing a Salesforce password in the process configuration. Which OAuth 2.0 flow should the architect recommend?

  1. Username-password flow with the password kept in an encrypted file
  2. JWT bearer flow using a certificate uploaded to the connected app
  3. User-agent flow with the token returned in the redirect URL
  4. Device flow with the code entered on a secondary device
Show answer

Answer: B

A. Username-password flow with the password kept in an encrypted fileThis flow still stores a password, which the security team forbids, and it is not recommended for production integrations.
B. JWT bearer flow using a certificate uploaded to the connected app ✓Correct. The server signs a JWT with its private key, Salesforce validates it with the uploaded certificate, and no user interaction or password is needed.
C. User-agent flow with the token returned in the redirect URLThe user-agent flow requires a user in a browser to authorize the app, which is not available for a headless nightly process.
D. Device flow with the code entered on a secondary deviceThe device flow requires a person to enter a code on another device, so it does not fit an unattended server process.

Why: The OAuth 2.0 JWT bearer flow is designed for server-to-server integrations: the client signs a JWT with a private key whose certificate is registered on the connected app, and Salesforce issues an access token without user interaction.

04

A retailer's warehouse system subscribes to a high-volume platform event that Salesforce publishes for each shipment request. The warehouse system is taken offline for maintenance for up to two days at a time. How can the architect ensure the subscriber processes the events published while it was offline?

  1. Ask Salesforce to switch the event to guaranteed delivery with unlimited storage
  2. Have the subscriber store the last processed replay ID and resubscribe from it, since events are retained for 72 hours
  3. Subscribe with the replay option for new events only after maintenance ends
  4. Query the platform event object with SOQL after maintenance to find missed events
Show answer

Answer: B

A. Ask Salesforce to switch the event to guaranteed delivery with unlimited storageThere is no unlimited retention option; events stay on the bus only for a limited retention window.
B. Have the subscriber store the last processed replay ID and resubscribe from it, since events are retained for 72 hours ✓Correct. High-volume platform events are kept on the event bus for 72 hours, and resubscribing with a stored replay ID retrieves the missed events.
C. Subscribe with the replay option for new events only after maintenance endsSubscribing for new events only (-1) skips everything published during the outage.
D. Query the platform event object with SOQL after maintenance to find missed eventsPlatform event messages are not stored as queryable records, so SOQL cannot retrieve them.

Why: Each event message has a replay ID. Subscribers that save the last replay ID they processed can resume from that point after an outage, as long as the events are still within the 72-hour retention window.

05

A shipping partner's integration platform must call Salesforce APIs on a schedule. The platform can store a client ID and client secret securely but cannot sign JWTs or manage certificates, and no user will be involved. Which OAuth 2.0 flow should the architect configure?

  1. Client credentials flow, with a run-as integration user set on the app
  2. JWT bearer flow with a certificate on the app
  3. Web server flow with a refresh token issued after the first login
  4. SAML bearer assertion flow using the partner's identity provider
Show answer

Answer: A

A. Client credentials flow, with a run-as integration user set on the app ✓Correct. The client credentials flow exchanges the client ID and secret for a token without user interaction, executing as the configured run-as user.
B. JWT bearer flow with a certificate on the appThe JWT bearer flow requires the client to sign assertions with a private key, which the partner platform cannot do.
C. Web server flow with a refresh token issued after the first loginThe web server flow needs a user to log in and approve access, which conflicts with a fully unattended integration.
D. SAML bearer assertion flow using the partner's identity providerThe SAML bearer assertion flow requires a signed SAML assertion, adding certificate management the partner wants to avoid.

Why: The OAuth 2.0 client credentials flow suits machine-to-machine integrations that can protect a client secret. The token runs as the integration user designated in the connected app or external client app policies.

06

A subscription business uses an Apex trigger on a platform event to create Invoice records. Auditors notice the invoices show 'Automated Process' as the creator, and under heavy load the trigger hits governor limits processing large event batches. Which two facts should guide the architect's fix? (Choose 2)

  1. Platform event triggers can be defined as before insert to validate events before delivery
  2. A platform event trigger runs in the same transaction as the publisher, so limits are shared
  3. A PlatformEventSubscriberConfig can set the trigger's running user and a smaller batch size
  4. Rolling back the trigger's transaction automatically removes the event from the event bus
  5. By default, platform event triggers run as the Automated Process system user
Show answer

Answer: C, E

A. Platform event triggers can be defined as before insert to validate events before deliveryPlatform event triggers support only after insert; events cannot be validated or blocked in a before context.
B. A platform event trigger runs in the same transaction as the publisher, so limits are sharedEvent triggers run asynchronously in their own process and transaction, separate from the publisher.
C. A PlatformEventSubscriberConfig can set the trigger's running user and a smaller batch size ✓Correct. The subscriber configuration lets the architect choose a running user and reduce the batch size to stay within limits.
D. Rolling back the trigger's transaction automatically removes the event from the event busOnce published, an event stays on the bus; a trigger failure does not delete it.
E. By default, platform event triggers run as the Automated Process system user ✓Correct. That default explains the creator value, and records created by the trigger reflect this user unless a running user is configured.

Why: Platform event Apex triggers run asynchronously as the Automated Process user by default, in batches of up to 2,000 events. PlatformEventSubscriberConfig lets you override the running user and the batch size.

07

A fintech team is building a new Java service that must both publish and subscribe to Salesforce platform events at high throughput. They want a compact binary payload format, efficient HTTP/2 transport and the ability to control how many events the client receives at a time. Which API should the architect recommend?

  1. Pub/Sub API
  2. Streaming API with a CometD client
  3. REST API sObject resources for the event object
  4. Bulk API 2.0 ingest jobs for the event object
Show answer

Answer: A

A. Pub/Sub API ✓Correct. Pub/Sub API uses gRPC over HTTP/2 with Avro-encoded payloads, supports publish and subscribe in one interface, and lets clients request events in controlled batches.
B. Streaming API with a CometD clientCometD uses long polling with JSON, does not offer pull-based flow control, and is the older streaming option.
C. REST API sObject resources for the event objectThe REST API can publish events but cannot subscribe to them, so it covers only half of the requirement.
D. Bulk API 2.0 ingest jobs for the event objectBulk API 2.0 is for asynchronous record loads and extracts, not for real-time event streaming.

Why: Pub/Sub API is the recommended API to publish and subscribe to platform events and change events. It is based on gRPC and HTTP/2, encodes payloads in Apache Avro, and gives subscribers flow control over event delivery.

08

A subscriber that keeps an external system in sync using Change Data Capture occasionally receives gap events for Opportunity, which contain header information but no field values. What should the subscriber do to keep the external copy accurate?

  1. Discard the gap events because they represent changes that were rolled back
  2. Resubscribe with replay ID -2 to receive the full field values again
  3. Use the record IDs in the event header to retrieve the current record data from Salesforce
  4. Disable Change Data Capture and switch the object to an hourly polling job
Show answer

Answer: C

A. Discard the gap events because they represent changes that were rolled backGap events represent real changes for which Salesforce could not generate full event data; discarding them leaves the copy out of sync.
B. Resubscribe with replay ID -2 to receive the full field values againReplaying earlier events does not add field values to gap events; they contain only header data by design.
C. Use the record IDs in the event header to retrieve the current record data from Salesforce ✓Correct. For gap events, the recommended approach is to read the affected records from Salesforce and update the external copy.
D. Disable Change Data Capture and switch the object to an hourly polling jobGap events are an expected, rare case; abandoning event-driven sync is unnecessary when it can be handled by reading the record.

Why: Salesforce publishes gap events instead of full change events in some situations, such as changes made outside the application server or when event data is too large. Subscribers should use the record IDs in the header to fetch current data.

09

A developer's Apex callouts to a shipping API hard-code the endpoint URL, read an OAuth token from custom metadata, and manually refresh it when it expires. The architect proposes moving to a Named Credential with an External Credential. Which two benefits does this provide? (Choose 2)

  1. Callouts made through the Named Credential no longer count toward the per-transaction callout limit
  2. Salesforce adds the authentication to the request and manages token refresh for supported protocols
  3. Synchronous callouts become possible from Apex triggers
  4. The endpoint is referenced with callout: syntax, so it can change per environment without code changes and no Remote Site Setting is needed
  5. The response body is automatically encrypted at rest in the org
Show answer

Answer: B, D

A. Callouts made through the Named Credential no longer count toward the per-transaction callout limitNamed Credentials do not change governor limits; each callout still counts toward the transaction's callout limit.
B. Salesforce adds the authentication to the request and manages token refresh for supported protocols ✓Correct. The platform handles the authentication header and token lifecycle, so the code no longer stores or refreshes tokens.
C. Synchronous callouts become possible from Apex triggersNamed Credentials do not lift the restriction on synchronous callouts from triggers; async Apex is still required.
D. The endpoint is referenced with callout: syntax, so it can change per environment without code changes and no Remote Site Setting is needed ✓Correct. Code refers to the Named Credential by name, and admins can update the URL in each environment while Salesforce treats it as an allowed endpoint.
E. The response body is automatically encrypted at rest in the orgNamed Credentials secure how Salesforce authenticates to the endpoint; they do not encrypt response data stored in the org.

Why: Named Credentials separate the endpoint and authentication from code. With External Credentials, Salesforce injects authentication, manages supported token flows, and grants access through permission sets.

10

A fitness brand runs a consumer mobile app on Heroku with Heroku Postgres and several million members. Member profile and class booking data must stay synchronized in both directions with Salesforce, and the app developers want to work with SQL rather than Salesforce APIs. What should the architect recommend?

  1. Salesforce Connect with an OData adapter in front of Heroku Postgres
  2. Have the mobile app call the Salesforce REST API for every screen
  3. Heroku Connect to synchronize the Salesforce objects with Heroku Postgres tables
  4. A nightly ETL job between Postgres and Salesforce using Bulk API 2.0
Show answer

Answer: C

A. Salesforce Connect with an OData adapter in front of Heroku PostgresSalesforce Connect provides read access (and limited writes) from Salesforce but does not keep Postgres tables in sync with Salesforce records.
B. Have the mobile app call the Salesforce REST API for every screenMillions of consumers calling Salesforce APIs directly would quickly consume API allocations and require Salesforce licenses for access patterns.
C. Heroku Connect to synchronize the Salesforce objects with Heroku Postgres tables ✓Correct. Heroku Connect provides bidirectional sync between Salesforce objects and Postgres, so app developers use SQL while data stays aligned.
D. A nightly ETL job between Postgres and Salesforce using Bulk API 2.0Nightly batches would leave bookings out of sync for most of the day and require custom bidirectional conflict handling.

Why: Heroku Connect synchronizes data between Salesforce and Heroku Postgres in one or both directions, letting high-scale consumer apps read and write with SQL while Salesforce remains in sync.

11

An online retailer wants browsing and cart events from its e-commerce site sent to Data 360 as they happen, in small payloads, so that segments and personalization reflect recent behavior. The site's backend can call REST APIs. Which approach should the architect recommend?

  1. Upload daily CSV files of events through the Ingestion API bulk pattern
  2. Insert the events as Salesforce custom object records with the REST API and map them into Data 360
  3. Publish the events as Salesforce platform events and wait for Data 360 to read them
  4. Send the events to the Ingestion API using the streaming pattern
Show answer

Answer: D

A. Upload daily CSV files of events through the Ingestion API bulk patternThe bulk pattern suits large, periodic loads; daily files would not reflect behavior as it happens.
B. Insert the events as Salesforce custom object records with the REST API and map them into Data 360Storing high-volume web events as CRM records consumes data storage and API calls and adds an unnecessary hop.
C. Publish the events as Salesforce platform events and wait for Data 360 to read themPlatform events are not the ingestion mechanism designed for web engagement data in Data 360, and this adds an extra layer.
D. Send the events to the Ingestion API using the streaming pattern ✓Correct. The Ingestion API streaming pattern accepts small JSON payloads in near real time from external sources.

Why: The Data 360 Ingestion API offers a streaming pattern for small, near real-time payloads and a bulk pattern for large, scheduled CSV loads. Choose based on latency needs and volume.

12

A middleware layer receives order events from Salesforce and forwards them to a supplier's API, which is occasionally unavailable for an hour or more. Some orders are being lost when forwarding fails. What should the architect recommend for the middleware design?

  1. Return an error to Salesforce so that users re-enter the order later
  2. Switch the integration to a synchronous callout from Salesforce directly to the supplier
  3. Drop the failed messages and run a weekly reconciliation report
  4. Persist messages in a queue, retry with exponential backoff, route exhausted messages to a dead-letter queue and alert support
Show answer

Answer: D

A. Return an error to Salesforce so that users re-enter the order laterPushing failure handling to users is error-prone and defeats the purpose of an asynchronous integration.
B. Switch the integration to a synchronous callout from Salesforce directly to the supplierA synchronous design couples Salesforce to the supplier's availability and still fails during outages.
C. Drop the failed messages and run a weekly reconciliation reportDropping messages accepts data loss and delays correction by up to a week.
D. Persist messages in a queue, retry with exponential backoff, route exhausted messages to a dead-letter queue and alert support ✓Correct. Durable queuing with retries and a dead-letter queue prevents loss and makes unrecoverable failures visible for reprocessing.

Why: Robust asynchronous integrations persist messages, retry with backoff, move messages that keep failing to a dead-letter queue, and alert operators so issues can be fixed and replayed.

13

An architect must decide between a real-time integration and a Batch Data Synchronization for moving product catalog data from a PIM system into Salesforce. Which two requirements most strongly favor Batch Data Synchronization? (Choose 2)

  1. The business accepts that catalog changes appear in Salesforce within the next business day
  2. Sales reps must see the PIM's response before saving a quote
  3. Supervisors must see catalog changes on open pages within seconds
  4. The data must not be stored in Salesforce for compliance reasons
  5. Each run involves hundreds of thousands of records that change in bulk
Show answer

Answer: A, E

A. The business accepts that catalog changes appear in Salesforce within the next business day ✓Correct. A tolerance for hours of latency removes the need for real-time messaging and fits a scheduled batch.
B. Sales reps must see the PIM's response before saving a quoteWaiting for a response during a user action is a Request and Reply need, not a batch one.
C. Supervisors must see catalog changes on open pages within secondsSeconds-level UI updates call for event streaming, not scheduled batches.
D. The data must not be stored in Salesforce for compliance reasonsA no-storage requirement points to Data Virtualization; batch sync copies data into Salesforce.
E. Each run involves hundreds of thousands of records that change in bulk ✓Correct. Large volumes changing in bulk are handled most efficiently by scheduled jobs using Bulk API 2.0.

Why: Batch Data Synchronization is favored when data can be refreshed on a schedule and volumes are large. Requirements for immediate responses, real-time UI updates or no local storage point to other patterns.

14

A Queueable Apex job sends invoices to an external accounting API. Occasionally the job fails with an uncatchable limit exception, and the invoice is never sent or logged. The architect wants a reliable way to log the failure and re-enqueue the job a limited number of times. What should be used?

  1. A try-catch block around the callout that re-enqueues the job in the catch
  2. A Transaction Finalizer attached to the Queueable with System.attachFinalizer
  3. A scheduled flow that checks every hour for invoices without a sent date
  4. A Continuation that retries the callout until it succeeds
Show answer

Answer: B

A. A try-catch block around the callout that re-enqueues the job in the catchUncatchable limit exceptions cannot be caught, so the catch block would never run.
B. A Transaction Finalizer attached to the Queueable with System.attachFinalizer ✓Correct. A finalizer runs after the Queueable completes, even when it fails with an uncatchable exception, and can log the result and re-enqueue the job.
C. A scheduled flow that checks every hour for invoices without a sent dateThis detects failures late and adds a second mechanism instead of handling the failure where it occurs.
D. A Continuation that retries the callout until it succeedsContinuation is for UI-initiated long-running callouts and does not run in Queueable jobs.

Why: Transaction Finalizers let a Queueable job attach a class that runs after the job finishes, whether it succeeded or failed, which supports logging and controlled retries for asynchronous callouts.

15

A manufacturer's ERP must create and update Account and Order records in Salesforce whenever customers or orders change in the ERP. The ERP initiates each operation and calls Salesforce directly. Which integration pattern does this describe?

  1. Remote Process Invocation – Request and Reply
  2. Remote Call-In
  3. Data Virtualization
  4. UI Update Based on Data Changes
Show answer

Answer: B

A. Remote Process Invocation – Request and ReplyRequest and Reply describes Salesforce calling a remote system and waiting for the response, which is the opposite direction.
B. Remote Call-In ✓Correct. In Remote Call-In, an external system connects to Salesforce and creates, retrieves, updates or deletes Salesforce data.
C. Data VirtualizationData Virtualization accesses external data from Salesforce on demand without storing it; here records are written into Salesforce.
D. UI Update Based on Data ChangesThis pattern pushes data changes to the Salesforce user interface; it does not describe how external systems write records.

Why: Remote Call-In covers external systems that call Salesforce APIs (REST, SOAP, Bulk, Composite or custom Apex services) to create, read, update or delete records.

16

A media company must call an Amazon API Gateway endpoint protected with AWS IAM authorization from Apex. Requests must be signed with AWS Signature Version 4, and the team does not want to implement the signing algorithm in code. What should the architect recommend?

  1. Store the AWS access keys in custom metadata and build the signature in an Apex utility class
  2. A Named Credential with an External Credential that uses the AWS Signature Version 4 authentication protocol
  3. Event Relay configured to the API Gateway endpoint
  4. A connected app with the JWT bearer flow for the AWS account
Show answer

Answer: B

A. Store the AWS access keys in custom metadata and build the signature in an Apex utility classImplementing the signing manually is the custom code the team wants to avoid and keeps secrets in less protected metadata.
B. A Named Credential with an External Credential that uses the AWS Signature Version 4 authentication protocol ✓Correct. External Credentials support AWS Signature Version 4, so Salesforce signs each callout automatically.
C. Event Relay configured to the API Gateway endpointEvent Relay sends platform events to Amazon EventBridge; it does not make signed REST calls to API Gateway.
D. A connected app with the JWT bearer flow for the AWS accountConnected apps govern access into Salesforce; AWS IAM does not accept Salesforce JWT bearer tokens for API Gateway.

Why: External Credentials support several authentication protocols, including OAuth 2.0, JWT, custom headers and AWS Signature Version 4, so Salesforce can authenticate callouts without custom signing code.

17

A revenue operations team at a software company wants closed Opportunities in Salesforce to create invoices in their cloud accounting system. They have no developers, the logic is a simple trigger-and-map flow, and both systems have prebuilt connectors. What should the architect recommend?

  1. A custom Apex trigger with callouts to the accounting system's API
  2. A full MuleSoft Anypoint Platform implementation with System, Process and Experience APIs
  3. MuleSoft Composer with the Salesforce and accounting system connectors
  4. A Salesforce Connect external object for the accounting system's invoices
Show answer

Answer: C

A. A custom Apex trigger with callouts to the accounting system's APICustom Apex requires developers to build and maintain it, which the team does not have.
B. A full MuleSoft Anypoint Platform implementation with System, Process and Experience APIsAnypoint is powerful but is more than this simple, single-flow need requires and typically needs integration developers.
C. MuleSoft Composer with the Salesforce and accounting system connectors ✓Correct. MuleSoft Composer lets business users build simple integrations with clicks using prebuilt connectors.
D. A Salesforce Connect external object for the accounting system's invoicesSalesforce Connect shows external data in Salesforce; it does not create invoices in the accounting system when an Opportunity closes.

Why: MuleSoft Composer is a no-code tool for building straightforward integrations between Salesforce and other systems using prebuilt connectors, suited to business teams without developers.

18

A delivery partner's system publishes a Delivery_Completed__e platform event to Salesforce through the API whenever a package is delivered. The operations admin wants to update the related Order's status and notify the account owner, using declarative tools only. What should the architect recommend?

  1. A record-triggered flow on the Order object
  2. A scheduled-triggered flow that checks for new events every hour
  3. An Apex trigger on Delivery_Completed__e
  4. A platform event-triggered flow that subscribes to Delivery_Completed__e
Show answer

Answer: D

A. A record-triggered flow on the Order objectA record-triggered flow starts from a record change, but here the trigger is the arrival of a platform event.
B. A scheduled-triggered flow that checks for new events every hourPlatform events cannot be queried like records, and hourly checks add delay.
C. An Apex trigger on Delivery_Completed__eAn Apex trigger works but requires code, which the admin wants to avoid.
D. A platform event-triggered flow that subscribes to Delivery_Completed__e ✓Correct. Platform event-triggered flows start when the event is received and can update records and send notifications declaratively.

Why: Salesforce can subscribe to platform events with Apex triggers or with platform event-triggered flows; the flow option gives admins a declarative way to act on events published by external systems.

19

A home insurance company uses a screen flow in its Experience Cloud site for policyholders to report damage. Before the claim is submitted, the address entered must be validated by a third-party address service that responds in under a second and has an OpenAPI specification. Which approach should the architect recommend?

  1. Publish a platform event and let middleware validate the address after submission
  2. Register the service with External Services and call the generated action from the screen flow
  3. Load a nightly file of valid addresses into a custom object for lookups
  4. Send an Outbound Message with the address to the service
Show answer

Answer: B

A. Publish a platform event and let middleware validate the address after submissionValidation must happen before submission so the user can correct the address; an asynchronous event cannot block the screen.
B. Register the service with External Services and call the generated action from the screen flow ✓Correct. This is Request and Reply done declaratively: the flow calls the action, waits for the quick response and shows the result to the user.
C. Load a nightly file of valid addresses into a custom object for lookupsA static copy of addresses is hard to keep complete and current, and the service already provides real-time validation.
D. Send an Outbound Message with the address to the serviceOutbound Messaging is one-way and cannot return the validation result to the screen flow.

Why: Request and Reply can be implemented declaratively: External Services turns an OpenAPI-described REST API into actions that a screen flow can call synchronously while the user waits.

20

A long-standing logistics partner integrates only through SOAP and requires a WSDL contract. The partner needs to call a single Salesforce operation that validates a shipment against several business rules and returns a custom result structure. What should the architect recommend?

  1. Have the partner use the Enterprise WSDL and perform the validation logic on their side
  2. An Apex class with methods defined using the webservice keyword, exposed as a custom SOAP web service with its generated WSDL
  3. A custom Apex REST service with @RestResource
  4. An Outbound Message that sends the shipment to the partner for validation
Show answer

Answer: B

A. Have the partner use the Enterprise WSDL and perform the validation logic on their sideThe business rules would then live in the partner's system, duplicating logic that should be owned in Salesforce.
B. An Apex class with methods defined using the webservice keyword, exposed as a custom SOAP web service with its generated WSDL ✓Correct. Apex SOAP web services encapsulate custom logic in Salesforce and provide a WSDL the partner can consume.
C. A custom Apex REST service with @RestResourceApex REST does not provide the WSDL contract the SOAP-only partner requires.
D. An Outbound Message that sends the shipment to the partner for validationOutbound Messaging sends data from Salesforce to the partner; it does not let the partner call a validation operation in Salesforce.

Why: Apex can expose custom SOAP web services by defining webservice methods in a global class; Salesforce generates a WSDL that external clients use to call that custom logic.

21

An automotive group integrates Salesforce, two ERPs, a dealer management system and a loyalty platform through middleware. Each system represents a customer differently, and every new connection currently requires a new pairwise field mapping. What should the architect recommend to reduce mapping effort as more systems are added?

  1. Require every system to adopt Salesforce's Account and Contact field names
  2. Store every system's customer format in Salesforce custom objects
  3. Let each target system transform incoming data from every source itself
  4. Define a canonical customer model in the middleware and map each system to and from it once
Show answer

Answer: D

A. Require every system to adopt Salesforce's Account and Contact field namesForcing every system to change its data model is costly and often impossible for packaged applications.
B. Store every system's customer format in Salesforce custom objectsCopying every format into Salesforce adds storage and does not remove the pairwise transformations.
C. Let each target system transform incoming data from every source itselfThis keeps pairwise mappings, just moved into each target, and they grow with every new system.
D. Define a canonical customer model in the middleware and map each system to and from it once ✓Correct. With a canonical model, each system needs one mapping to the shared format instead of a mapping to every other system.

Why: A canonical data model in the integration layer reduces the number of transformations from one per system pair to one per system, making it easier to add or replace systems.

Find out if you're ready to pass

Take the free Platform Integration Architect diagnostic: 20 questions, no account needed. Then unlock all 299 questions, full practice exams and the study guide.

Start the free diagnosticSee plans

Other sections of this exam