Salesforce Decode
Salesforcedecode
All interview topics

Integration Interview Questions

REST, SOAP, platform events, CDC, middleware, and event-driven architecture.

114 unique questions in this topic

Difficulty Level

Topic Focus

Showing 114 of 114 Integration questions

Beginnerrestintegrationbasics

What is a REST API integration with Salesforce?

An external ERP must create Accounts in Salesforce nightly. You explain REST at a high level.

Beginneroauthconnected-app

What is OAuth for Salesforce integrations?

Middleware needs long-running access to Salesforce without a human logging in daily. You explain OAuth flows simply.

Beginnersoapenterprise-wsdl

What is SOAP API and when is it still used?

A legacy billing system only supports SOAP. You explain why Salesforce still offers it.

Beginnerplatform-eventsevent-driven

What are Platform Events?

Order shipped in ERP should notify Salesforce without polling every minute. You introduce Platform Events.

Beginnercdcintegration

What is Change Data Capture (CDC)?

Data warehouse needs near-real-time Salesforce Account changes. You explain CDC basics.

Beginnermiddlewaremulesoft

What is middleware and why use MuleSoft with Salesforce?

Five systems need Account updates. Point-to-point integrations become messy. You explain middleware role.

Beginnerexternal-idupsert

What is an external ID and why use it in integrations?

Same Contact syncs from marketing tool daily. You prevent duplicate Contacts with external ID.

Beginnercalloutshttp

What are callouts in Apex integrations?

Salesforce must POST order status to external shipping API from a trigger. You explain callout basics.

Beginneridempotencyreliability

What is idempotency in integrations?

Network blip causes the same invoice POST twice. Finance sees duplicate Opportunities. You explain idempotency.

Beginnercompositerest

What is the Composite REST API?

Mobile app needs Account, Contact, and Opportunity created in one user action with one round trip.

Beginnermonitoringoperations

How do you monitor integration failures?

Overnight sync failed silently last week. You list basic monitoring a junior should know.

Beginnerlimitsapi

What is an API rate limit in Salesforce?

Marketing platform hits API limit and CRM updates stop midday. You explain API limits simply.

Architectrestsoapapi-strategy

Design REST vs SOAP API strategy for enterprise integrations

A 15-year enterprise has 40 SOAP integrations from legacy ERP while new mobile apps prefer REST. Leadership wants a unified API strategy without big-bang migration.

Advancedoauthconnected-appsecurity

Implement OAuth connected app patterns for secure integrations

Integration users with System Administrator profiles were used for MuleSoft connections until security audit flagged excessive privileges.

Architectplatform-eventscdcevent-driven

Architect event-driven integration with Platform Events and CDC

Nightly batch exports of Account changes cannot keep warehouse analytics current for same-day personalization.

Architectmulesoftmiddlewareesb

Design middleware layer with MuleSoft Anypoint for Salesforce hub

Point-to-point integrations between Salesforce, SAP, Snowflake, and Workday created 28 fragile connections with duplicated transformation logic.

Advancedapi-limitsbulk-apiscale

Handle Salesforce API limits and bulk processing at scale

Nightly product catalog sync of 800k SKUs exceeds daily API limit and REST composite timeouts.

Advancedidempotencypaymentsreliability

Implement idempotent integration patterns for financial transactions

Payment confirmation webhook retries caused duplicate Payment__c records and double revenue recognition.

Architectmdmsyncmaster-data

Design bi-directional sync between Salesforce and external MDM

Customer golden record lives in Informatica MDM but sales reps edit Account addresses in Salesforce. Conflicts arise weekly.

Architecterporder-to-cashsap

Integrate Salesforce with ERP order-to-cash flow

Quotes won in Salesforce must create sales orders in SAP, return order numbers, and sync invoice status back for rep visibility.

Advancedsalesforce-connectodatavirtualization

Implement Salesforce Connect for external data virtualization

Inventory levels live in external SQL database. Team debates copying into Salesforce nightly vs real-time lookup.

Intermediatewebhooksoutbound-messagesnotifications

Design webhook and outbound message patterns from Salesforce

Case status changes must notify Slack, Jira, and custom warehouse within seconds of update.

Advancedfilesdmscontent

Architect file and document integration with external DMS

Legal documents must stay in iManage DMS with metadata synced to Salesforce Case for matter management.

Advancedetlwarehousesnowflake

Implement ETL vs ELT patterns for Salesforce analytics warehouse

Analytics team wants Snowflake as enterprise warehouse feeding Tableau. Debate Fivetran ELT vs Informatica ETL transformations.

Intermediateerror-handlingdlqreliability

Design integration error handling and dead letter queue patterns

Failed SAP order integrations logged inconsistently; ops discovers backlog of 400 unprocessed orders after two weeks.

Advancedsecretsnamed-credentialssecurity

Secure integration secrets and credential management

Developers stored API keys in Custom Labels and Flow hardcoded URLs until leaked in sandbox refresh to contractor org.

Intermediatetestingsandboxqa

Plan integration testing strategy across environments

Integrations pass in dev sandbox but fail in full sandbox due to data volume and profile differences.

Advancedmarketing-cloudmc-connectjourneys

Design Salesforce Marketing Cloud Connect integration

Sales and service data in Sales Cloud must trigger Journey Builder emails with consent-aware personalization.

Intermediatecomposite-apirestbatching

Implement composite and batch composite API patterns

Mobile app makes 12 sequential REST calls loading account dashboard causing poor UX on 3G networks.

Architectkafkastreamingreal-time

Architect real-time integration with Apache Kafka and Salesforce

Fraud detection requires sub-second propagation of Case updates from Salesforce to Kafka consumers scoring transactions.

Advancedherokuheroku-connectpostgres

Design Heroku Connect vs API integration for Postgres sync

Team needs Salesforce data in Postgres for custom mobile app offline cache debating Heroku Connect vs nightly API export.

Architectmulti-orgevent-hubenterprise

Handle Salesforce multi-org integration with event hub pattern

Global company has 8 regional Salesforce orgs; HQ needs consolidated customer view and cross-region case escalation.

Intermediateexternal-servicesopenapiflow

Implement Salesforce External Services for OpenAPI integrations

Admins want Flow to call REST API without Apex using imported OpenAPI spec.

Intermediatesoapbulk-querywsdl

Design SOAP API bulk query and partner WSDL usage

Legacy Java app uses partner WSDL query() polling 2M records daily.

Advanceddocusigncpqesign

Integrate e-signature DocuSign with Salesforce CPQ

Quote PDF must auto-send for signature on approval with status synced to Opportunity.

Intermediateslacknotificationscollaboration

Implement Salesforce to Slack integration patterns

Sales team wants Opportunity won alerts in Slack channel with record link.

Advancedstripepaymentsbilling

Design payment gateway integration with Stripe and Salesforce

B2B portal collects payment on Order via Stripe with receipt stored on Salesforce Payment record.

Advancedpolymorphicmappingdata-model

Handle polymorphic lookups in integration mappings

Task WhoId polymorphic field breaks warehouse ETL expecting Contact foreign key only.

Advancedshieldevent-monitoringaudit

Implement Salesforce Shield Event Monitoring for integration audit

Compliance requires proof of which integration user accessed Contact records hourly.

Intermediatessoazure-adsaml

Design Azure AD SSO integration with Salesforce

Enterprise mandates Azure AD SAML SSO for all Salesforce users with MFA enforced at IdP.

Advancedctiservice-cloud-voicetelephony

Integrate telephony CTI with Service Cloud Voice

Contact center migrates from legacy CTI adapter to Service Cloud Voice with Amazon Connect.

Advancedrate-limitingexperience-cloudapi

Architect API rate limiting for Experience Cloud public APIs

Public guest API abused by scrapers hitting Salesforce API limits affecting paying members.

Intermediateipaasworkatotool-selection

Implement workato vs MuleSoft vs Flow integration selection

Business units bought Workato licenses while IT standardized MuleSoft causing duplicate integrations.

Advanceddata-lakeiceberganalytics

Design Salesforce to data lake ingestion with Apache Iceberg

Data platform team wants open table format Iceberg fed from Salesforce for ML feature store.

Advancedencryptionshieldintegration

Handle integration with Salesforce encrypted fields

Integration cannot filter warehouse sync on encrypted SSN field breaking match logic.

Advancedgraphqlbffmobile

Implement GraphQL API for mobile BFF layer

Mobile team wants single GraphQL query replacing 8 REST calls for home screen dashboard.

Architectnetsuitebillingsubscriptions

Design NetSuite Salesforce integration for subscription billing

SaaS company uses Salesforce for CRM and NetSuite for billing and revenue recognition.

Advancediottelemetryplatform-events

Integrate IoT device telemetry with Salesforce IoT or custom

Industrial equipment sends telemetry triggering Case creation when threshold exceeded.

Intermediatescimprovisioningidentity

Implement SCIM provisioning for user lifecycle

HR system deprovisions employees but Salesforce licenses remain active 30 days creating security gap.

Intermediateawslambdaserverless

Design cross-cloud Salesforce to AWS Lambda patterns

Image processing on ContentVersion upload exceeds Apex heap limits; team proposes Lambda trigger.

Intermediatedatetimetimezonedata-quality

Handle timezone and datetime integration consistently

Global meetings synced to external calendar off by one hour during DST transition.

Intermediateemailemail-to-caseinbound

Architect Salesforce Inbound Email integration for case creation

Support aliases from 5 brands must route to correct queues with spam filtering before Case create.

Advancedobservabilitytracingcorrelation

Design integration observability with distributed tracing

Support cannot trace why order failed across Salesforce MuleSoft SAP in under 5 minutes mean time to diagnose.

Advancedbigquerygcpanalytics

Implement Salesforce to Google BigQuery export patterns

Analytics on GCP needs Salesforce data in BigQuery for Looker dashboards refreshed hourly.

Intermediatedeveloper-portalpartnersapi

Design partner API onboarding and developer portal

50 partners need self-service API keys documentation and sandbox access without manual IT tickets per partner.

Intermediatesoft-deletearchivesync

Handle soft delete and archive sync to external systems

Deleted Salesforce Accounts still active in external MDM causing duplicate re-create on next sync.

Advancedservicenowitsmincident

Integrate Salesforce with ServiceNow incident management

Enterprise IT uses ServiceNow for internal incidents but Salesforce Cases used for customer support—executives want unified reporting.

Intermediatecallbackasyncwebhook

Design asynchronous callback pattern for long external processes

Credit check external service takes 30 seconds; Salesforce Flow cannot wait synchronously.

Intermediatemappingtransformationetl

Implement field-level integration mapping with transformation rules

SAP customer number format differs from Salesforce Account external ID causing sync mismatches.

Advancedpub-sub-apigrpcstreaming

Architect Salesforce Pub/Sub API for external subscribers

External analytics needs gRPC stream of Change Data Capture events without middleware polling.

Intermediatereleasesregressionupgrade

Design integration for Salesforce release upgrade regression

Spring release deprecated API breaking 3 integrations discovered production day one.

Intermediateloyaltyloyalty-managementintegration

Implement loyalty platform integration with Salesforce

Salesforce Loyalty Management points balance must sync with external coalition partner API.

Advancedmigrationfilescontent

Handle large attachment migration to external storage

10TB legacy Attachments must migrate to S3 with Salesforce Files pointers without storage limit breach.

Architectanti-corruption-layerdddlegacy

Design anti-corruption layer for legacy system integration

1960s mainframe terminology and codes leak into Salesforce confusing users and breaking reports.

Advancedresttimeoutasync

Handle Salesforce REST API 20-second timeout in synchronous integrations

A checkout Flow calls REST Composite synchronously to reserve inventory; ERP responses exceed 20 seconds causing UNABLE_TO_LOCK_ROW and abandoned carts during peak hours.

Advancedjwtoauthconnected-app

Design JWT bearer OAuth flow for machine-to-machine Salesforce API access

Kubernetes microservices need Salesforce API access without storing refresh tokens; security mandates certificate-based headless authentication.

Advancedoutbound-messagesplatform-eventsmigration

Migrate legacy Outbound Messages to Platform Events without downtime

Twelve production workflows send Outbound Messages to aging middleware; Salesforce roadmap deprecates OM and team needs zero-delivery-gap migration.

Advancedcdcchange-data-capturefiltering

Implement CDC high-volume event filtering to reduce subscriber noise

Change Data Capture on Account fires 400k events daily but warehouse only cares about billing address and credit tier changes, wasting Kafka throughput.

Intermediatemulesoftretryreliability

Design retry policies with exponential backoff for MuleSoft Salesforce connectors

Transient Salesforce 503 errors during maintenance cause MuleSoft flows to fail permanently; ops manually replays 200 failed orders nightly.

Intermediatesoapsessionauthentication

Handle Salesforce SOAP API session timeout and automatic re-authentication

Legacy .NET integration using Enterprise WSDL fails INVALID_SESSION_ID every 2 hours stopping payroll sync mid-batch.

Architectoutboxplatform-eventsreliability

Architect transactional outbox pattern for reliable Salesforce event publishing

Platform Event publish succeeds but Salesforce DML rolls back leaving external subscribers acting on phantom order-created events.

Advancedcircuit-breakerresiliencecallouts

Design circuit breaker pattern when external systems fail during Salesforce callouts

Credit bureau API outage causes thousands of Apex callout exceptions filling debug logs and blocking loan application Flows.

Intermediaterestcollectionsbulk

Implement REST sObject Collections API for bulk create and update

Mobile offline sync replays 200 locally queued Account updates; sequential PATCH calls exceed daily API limit.

Advancedplatform-eventsidempotencydeduplication

Handle duplicate Platform Event delivery in event-driven subscribers

Payment-completed Platform Event processed twice creates duplicate shipment orders in warehouse system.

Advancedcdcschema-evolutionversioning

Design Change Data Capture envelope schema evolution without breaking consumers

Adding custom fields to Account CDC breaks downstream Avro schema consumers in production Kafka pipeline.

Intermediateoauthrefresh-tokensecurity

Implement OAuth refresh token rotation for long-running Salesforce integrations

Integration refresh tokens never rotated; leaked token from 2019 backup grants API access until discovered in audit.

Architectevent-sourcingplatform-eventsaudit

Architect event sourcing audit trail using Platform Events

Regulator requires immutable history of Quote discount approvals; Field Audit Trail insufficient for cross-system narrative.

Intermediatecompositerestrelationships

Design REST Composite tree requests for parent-child record creation

Order API must create Order, OrderItems, and Payment in one atomic REST call from ecommerce middleware.

Advancedapi-limitsconcurrencythrottling

Handle Salesforce Concurrent API Request Limits during peak integration loads

Black Friday triggers 25 parallel MuleSoft workers; org hits concurrent request limit causing cascading integration failures.

Intermediatesoapmetadatacaching

Implement SOAP describeGlobal caching for metadata-heavy integrations

Dynamic SOAP integration calls describeGlobal and describeSObjects on every batch adding 30 seconds overhead per run.

Architectsagadistributed-transactionserp

Design saga pattern for distributed transactions across Salesforce and ERP

Order creation requires Salesforce Opportunity update, SAP order create, and inventory reserve; any step failure must compensate prior steps.

Intermediatetimeoutcalloutapex

Align Apex HTTP callout timeout with middleware and external SLA

Apex callout timeout 10 seconds but MuleSoft route timeout 60 seconds causing orphaned MuleSoft transactions when Apex already failed.

Advancedmdmlockingsync

Implement semantic locking for bi-directional Salesforce MDM sync conflicts

Sales rep and MDM steward simultaneously update Account industry field; last-write-wins loses compliance-approved MDM value.

Advancedplatform-eventsreplayrecovery

Design Platform Event replay recovery after subscriber extended outage

Kafka consumer down 18 hours misses Platform Events; on restart earliest replay reprocesses week of events duplicating warehouse loads.

Architectevent-relayawseventbridge

Architect Salesforce Event Relay to AWS EventBridge integration

Enterprise standardizes on AWS EventBridge; team wants Salesforce Change Data Capture without custom Kafka middleware.

Intermediaterestconcurrencyoptimistic-locking

Implement REST If-Unmodified-Since optimistic concurrency control

Two integration jobs update same Opportunity amount; second overwrites first without detecting stale read causing incorrect forecast.

Intermediatewebhooksecurityhmac

Design webhook HMAC signature verification for inbound Salesforce integrations

Public REST endpoint receives purported Salesforce webhooks; attacker forged payload creates fraudulent refund records.

Advancedlockingconcurrencyupsert

Handle UNABLE_TO_LOCK_ROW in high-concurrency integration upserts

Flash sale inventory sync from 10 workers upserting same Product2 external ID causes UNABLE_TO_LOCK_ROW failures and oversell.

Intermediatecdcfilteringchangedfields

Filter CDC ChangeEventHeader changedFields in Apex and middleware subscribers

Subscriber processes every Account CDC event but only BillingCity changes matter; CPU cost triples processing irrelevant field updates.

Intermediatemulesoftgovernanceconnected-app

Design MuleSoft API autodiscovery linked to Salesforce connected app governance

Fifty MuleSoft apps each created own connected app; security audit cannot map API traffic to business owner.

Intermediatebulk-apierror-handlingpartial-success

Handle Bulk API 2.0 failed records retrieval and partial job success

Nightly Contact load job succeeds with 400 failed records buried in unprocessed CSV; sales starts day with missing leads.

Advancedoauthsamlsso

Implement OAuth SAML bearer flow for enterprise SSO to Salesforce API

Enterprise IdP issues SAML assertions; batch jobs need Salesforce API token without interactive login or stored password.

Advanceddlqplatform-eventskafka

Design dead letter topic pattern for failed Platform Event processing

Malformed Platform Event payloads crash consumer; infinite retry loop blocks entire partition processing valid events.

Intermediaterestquerylimits

Handle REST API URI length limits for large SOQL IN clause queries

Integration queries 800 Account Ids via GET /query?q=... IN clause; 414 URI Too Long errors abort sync.

Intermediatestreaming-apicometdreal-time

Implement Salesforce Streaming API for real-time operational dashboards

NOC dashboard needs live Case escalation count; polling REST every 30 seconds hits API limits with 50 dashboards.

Advancedversioningschemaapi-contract

Design integration payload JSON schema versioning with backward compatibility

Partner API v2 adds required field; v1 partners break until coordinated upgrade causing production outage.

Intermediatemaintenanceresiliencedegradation

Handle Salesforce API maintenance windows with graceful integration degradation

Salesforce instance maintenance returns 503; integrations retry aggressively extending outage impact to warehouse.

Intermediatesoapleadsrouting

Implement SOAP AssignmentRuleHeader for automated lead integration routing

Inbound lead SOAP API creates Lead without assignment rules; leads sit in default queue missing SLA.

Architectevent-drivenorder-fulfillmentmulesoft

Design event-driven order fulfillment with Platform Events and MuleSoft

Order placed in Commerce Cloud must trigger inventory check SAP allocation shipment label without synchronous 45-second chain.

Advancedcdcgap-recoveryreconciliation

Recover missed Change Data Capture events with gap detection batch

Subscriber ReplayId gap detected 5000 Account changes missing from warehouse during Kafka broker failure.

Intermediaterestpatchpartial-update

Implement REST PATCH partial update semantics for integration efficiency

Integration sends full Account 80-field JSON on every address change wasting bandwidth and triggering unnecessary validation rules.

Advancedoauthpkcemobile

Design OAuth PKCE flow for mobile Salesforce Experience Cloud integrations

Mobile app uses implicit OAuth flow; security audit mandates PKCE and prohibits client secret in app binary.

Intermediatemulesoftoauthtoken-refresh

Handle MuleSoft Salesforce connector token refresh failures in production

Connected app secret rotated; MuleSoft flows fail INVALID_SESSION_ID until manual redeploy causing 4-hour order outage.

Advanceddeduplicationwebhookcache

Implement request deduplication cache for REST webhook storm protection

Partner retries same Order webhook 50 times in 2 minutes; duplicate Order records created despite idempotency intent.

Architectcdcpulsarstreaming

Design Salesforce CDC to Apache Pulsar enterprise streaming pipeline

Enterprise messaging standard is Pulsar not Kafka; data platform requires Account CDC in multi-tenant Pulsar namespace.

Intermediatesoapsessionrecovery

Handle SOAP INVALID_SESSION_ID automatic recovery in batch integrations

Overnight SOAP batch fails at hour 3 with INVALID_SESSION_ID; 2 hours of processed records not committed due to batch rollback design flaw.

Intermediatehealth-checkmonitoringsynthetic

Implement integration health check endpoint for Salesforce dependency monitoring

PagerDuty alerts only when orders fail; no early warning Salesforce auth or limit degradation.

Architectcompensationrollbackerp

Design compensating rollback when ERP succeeds but Salesforce update fails

SAP creates sales order successfully; Salesforce Opportunity update fails leaving SAP order orphaned without CRM link.

Advancedplatform-eventsreliabilityoutbox

Handle Platform Event publish failure after database commit edge cases

Apex after insert publishes Platform Event; publish throws exception but Account already committed leaving subscribers never notified.

Intermediaterestqueryalldeleted-records

Implement REST queryAll for archived deleted records in compliance sync

Warehouse must reflect Salesforce deletes for GDPR; standard query excludes deleted records causing resurrected customers in analytics.

Advancedmulesoftscatter-gatherperformance

Design MuleSoft scatter-gather for parallel Salesforce API aggregation

Customer 360 API needs Account Contacts Cases Opportunities; sequential MuleSoft calls exceed 8 second Experience Cloud timeout.

Intermediateoauthsecurityip-restrictions

Evaluate OAuth connected app IP relax vs certificate pinning tradeoffs

MuleSoft CloudHub dynamic IPs conflict with connected app IP whitelist; team debates IP relax vs cert-based auth.

Intermediatecdcsoft-deletewarehouse

Implement CDC soft delete propagation to warehouse within one-hour SLA

Salesforce Account deleted; warehouse still shows active customer 24 hours later causing duplicate marketing sends.

Architectchaos-engineeringresiliencetesting

Design integration chaos engineering tests for Salesforce failure modes

Integrations never tested for Salesforce 503 or limit exhaustion; first real outage exceeds RTO by 6 hours.

Integration Interview Questions | Salesforce Decode | Salesforce Decode