Salesforce Integration Architect and Developer interviews test how you connect external systems reliably. Here are the top Salesforce Integration and API interview questions and answers.
1. How do Salesforce REST API, SOAP API, Bulk API 2.0, and Pub/Sub API differ?
Answer: REST API is lightweight (JSON/XML) for mobile and web apps; SOAP API provides strict WSDL contracts for enterprise middleware; Bulk API 2.0 asynchronously loads or queries millions of records; and Pub/Sub API uses gRPC/HTTP2 for high-throughput event streaming with Platform Events and Change Data Capture.
2. Why should you use Named Credentials and External Credentials for outbound callouts?
Answer: Named Credentials decouple endpoint URLs and authentication (OAuth 2.0, JWT, API keys via External Credentials) from Apex or Flow code. Salesforce handles token storage, refresh, and encryption automatically without hardcoding secrets.
3. What is the difference between Platform Events and Change Data Capture (CDC)?
Answer: Platform Events are custom, developer-defined event messages published intentionally by Apex, Flow, or external APIs for event-driven workflows. Change Data Capture (CDC) automatically publishes change events whenever Salesforce records are created, updated, deleted, or undeleted.
4. How do you test Apex HTTP callouts?
Answer: Because Apex unit tests cannot make live network requests, implement the HttpCalloutMock interface (or use StaticResourceCalloutMock) and register it with Test.setMock(HttpCalloutMock.class, ...) between Test.startTest() and Test.stopTest().
5. What are the key callout limits in a Salesforce transaction?
Answer: A single synchronous or asynchronous transaction allows up to 100 callouts with a cumulative timeout of 120 seconds, and you cannot perform uncommitted DML before a callout in the same transaction.

