{"id":2680,"date":"2026-11-20T09:00:00","date_gmt":"2026-11-20T03:30:00","guid":{"rendered":"https:\/\/swapnilzambare.com\/blog\/?p=2680"},"modified":"2026-11-22T11:48:51","modified_gmt":"2026-11-22T06:18:51","slug":"integration-patterns-interview-questions","status":"publish","type":"post","link":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/","title":{"rendered":"Integration Patterns Interview Questions and OAuth Flows"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">Integration Patterns Interview Questions are the architecture half of an integration role. Anyone can write a callout, and the interesting part is knowing which shape the integration should take before any code exists.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Last reviewed for the Winter &#8217;27 release (November 2026).<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This post covers the questions asked, grouped into the patterns, picking between them, OAuth flows, middleware and error handling, and scenario questions where a design has to be chosen.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-1-1024x640.png\" alt=\"Integration Patterns Interview Questions diagram showing the four questions that select a pattern\" class=\"wp-image-2678\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-1-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-1-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-1-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: Four questions about the requirement usually narrow it to a single pattern.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Integration Patterns Interview Questions Cover<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Integration Patterns Interview Questions test whether you start from the requirement rather than the technology. The pattern comes first, and the API is a detail that follows.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Think of it like choosing between a phone call, a letter and a weekly report. The virtualisation option is covered in the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-connect-custom-adapters\/\">Salesforce Connect adapters<\/a>. The content might be the same, and the right form depends on urgency and volume.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Integration Patterns Interview Questions expect the names, because using them makes a design conversation much shorter. Everyone in the room then knows what you mean.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">The Patterns<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>Request and reply<\/td><td>Salesforce calls out and waits for the answer<\/td><\/tr><tr><td>Fire and forget<\/td><td>Salesforce notifies another system and moves on<\/td><\/tr><tr><td>Batch data synchronisation<\/td><td>Scheduled bulk movement in either direction<\/td><\/tr><tr><td>Remote call in<\/td><td>An outside system calls Salesforce<\/td><\/tr><tr><td>Data virtualisation<\/td><td>Outside data shown without being stored<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Question<\/th><th>What it decides<\/th><\/tr><\/thead><tbody><tr><td>Who initiates<\/td><td>Remote call in, or an outbound pattern<\/td><\/tr><tr><td>Is a reply needed<\/td><td>Request and reply, or fire and forget<\/td><\/tr><tr><td>What volume<\/td><td>Bulk sync, or record by record<\/td><\/tr><tr><td>What timing<\/td><td>Immediate, or scheduled<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Those four questions settle most Integration Patterns Interview Questions before any API is mentioned.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\/\/ fire and forget from a trigger handler\r\npublic static void notify(List&lt;Enrolment__c&gt; rows) {\r\n    List&lt;Enrolment_Created__e&gt; events = new List&lt;Enrolment_Created__e&gt;();\r\n    for (Enrolment__c r : rows) {\r\n        events.add(new Enrolment_Created__e(Enrolment_Id__c = r.Id));\r\n    }\r\n    EventBus.publish(events);\r\n}<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Publishing an event rather than calling out is the answer Integration Patterns Interview Questions want for fire and forget, because the trigger stays fast and the delivery is handled for you.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Request and Reply vs Fire and Forget<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-2-1024x640.png\" alt=\"Integration Patterns Interview Questions comparison of request and reply with fire and forget\" class=\"wp-image-2679\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-2-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-2-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-diagram-2-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: Whether anyone is waiting for the answer decides this one.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Need<\/th><th>Pattern<\/th><\/tr><\/thead><tbody><tr><td>A live credit check during a sale<\/td><td>Request and reply<\/td><\/tr><tr><td>Telling a warehouse an order shipped<\/td><td>Fire and forget<\/td><\/tr><tr><td>A nightly product catalogue refresh<\/td><td>Batch data synchronisation<\/td><\/tr><tr><td>A partner portal creating cases<\/td><td>Remote call in<\/td><\/tr><tr><td>Eight years of invoices visible in Salesforce<\/td><td>Data virtualisation<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Integration Patterns Interview Questions usually read like that table, one requirement at a time.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The post on <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-integration-patterns\/\">integration patterns<\/a> covers the patterns, and the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-oauth-flows\/\">OAuth flows<\/a> covers authentication.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Integration Patterns Interview Questions on the Patterns<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q1: Name the main integration patterns.<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-integration-patterns\/\">Request and reply, fire and forget<\/a>, batch data synchronisation, remote call in, and data virtualisation.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Pattern<\/th><th>Who starts it<\/th><th>Waits for a reply<\/th><th>Typical tools<\/th><\/tr><\/thead><tbody><tr><td>Request and reply<\/td><td>Salesforce<\/td><td>Yes<\/td><td>Apex callout, External Services<\/td><\/tr><tr><td>Fire and forget<\/td><td>Salesforce<\/td><td>No<\/td><td>Platform events, queueable callout, outbound message<\/td><\/tr><tr><td>Batch data sync<\/td><td>Either side, on a schedule<\/td><td>No<\/td><td>Bulk API 2.0, ETL or middleware<\/td><\/tr><tr><td>Remote call in<\/td><td>The other system<\/td><td>Yes<\/td><td>REST, SOAP, Apex REST, composite<\/td><\/tr><tr><td>Data virtualisation<\/td><td>Salesforce, on view<\/td><td>Yes<\/td><td>Salesforce Connect<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: list the five patterns from memory. It is the most common opening question.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q2: What is request and reply?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Salesforce calls an outside system and waits for the response before continuing.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: checking a customer&#8217;s credit score before an opportunity can move to Negotiation.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you build it without code? With an HTTP Callout action or External Services in Flow.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q3: What is the main risk with it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The user waits, so a slow partner becomes your performance problem.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If the partner takes 20 seconds, the user stares at a spinner for 20 seconds.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: give a real example of a slow partner and how you handled it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q4: How do you limit that risk?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Set a sensible timeout, show a clear error message, and use a Continuation when the wait can be long.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Continuation lets an Apex method wait up to 120 seconds without holding a server thread, so the page stays responsive.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q5: What is fire and forget?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Salesforce tells another system something happened and does not wait for an answer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: telling the warehouse an order was confirmed, while the user carries on working.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What if the receiver is down? The event waits in the retention window, or the queueable retries.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q6: How is it usually built?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-platform-events-apex\/\">With a platform event<\/a>, or a queueable that makes the callout after the save.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Outbound messages from flows are an older option that still works for SOAP listeners.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q7: Why prefer a platform event?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The publisher does not need to know who is listening, and delivery and replay are handled for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">New subscribers can be added later without changing the publishing code.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say &#8220;decoupling&#8221; and explain it in plain words.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q8: What is batch data synchronisation?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Scheduled bulk movement of records, in one or both directions.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: every night, product prices from SAP are loaded into Salesforce, and new orders go back to SAP.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q9: Which API suits it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-bulk-api-2\/\">Bulk API 2.0<\/a>, for volume and because it uses very few API calls.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For changes as they happen, combine it with Change Data Capture instead of frequent polling.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q10: What is remote call in?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An outside system calling Salesforce to read or write data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a partner portal creating cases, or an ERP updating account credit limits.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Which user does remote call in run as? The user who owns the OAuth token.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q11: Which options serve it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The REST API, the SOAP API, <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-rest-services-restresource\/\">Apex REST<\/a>, and the composite resources.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the standard REST API for simple record work, and Apex REST when the partner needs a custom contract or business logic.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q12: What is data virtualisation?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Showing outside data as records in Salesforce without storing it there.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The data stays in the source system and is fetched live when a user looks at it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: always mention the reporting limitation in the same answer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q13: Which feature provides it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Salesforce Connect, with an OData adapter or a <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-connect-custom-adapters\/\">custom Apex adapter<\/a>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The outside data appears as external objects ending in __x, with tabs, related lists and search.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can external objects have lookups? Yes, external and indirect lookups.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q14: When is virtualisation the wrong answer?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When the business needs reports, dashboards or heavy automation on the data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">External objects have limited reporting and no triggers, so load the data, or a summary, when it must be analysed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q15: Which pattern suits a real time dashboard of outside data?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Usually a summary loaded on a schedule, because live calls on every view are costly and slow.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For truly live numbers, a small component can call the outside system on demand for one screen.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q16: How do you choose between real time and batch integration?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Ask how quickly the other system must know. Seconds or minutes means events or callouts; next morning means batch. Real time costs more to build and run, so use it only where the business needs it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q17: What is the UI update based on data changes pattern used for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Showing changes on users&#8217; screens as they happen, like a case list that refreshes when a new case arrives. It is built with platform events or Change Data Capture and an LWC that subscribes with lightning\/empApi.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q18: Can one integration use two patterns?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, and most do, such as a nightly sync plus events for urgent changes.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a nightly Bulk sync for the full catalogue, plus platform events for urgent price changes during the day.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Integration Patterns Interview Questions on OAuth<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q19: Why does an integration need OAuth?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To get an access token without the integration holding a user&#8217;s password.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Tokens can be limited by scope, revoked any time and rotated without changing passwords.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q20: Which flow suits a server to server integration?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-oauth-flows\/\">client credentials flow<\/a>, or the JWT bearer flow.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>OAuth flow<\/th><th>User present<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td>Client credentials<\/td><td>No<\/td><td>Server to server, runs as a chosen integration user<\/td><\/tr><tr><td>JWT bearer<\/td><td>No<\/td><td>Server to server with a certificate<\/td><\/tr><tr><td>Web server (authorisation code), with PKCE<\/td><td>Yes<\/td><td>Web apps, and mobile or desktop apps<\/td><\/tr><tr><td>Device flow<\/td><td>Yes, on another device<\/td><td>Command line tools, TVs, smart devices<\/td><\/tr><tr><td>Refresh token<\/td><td>No, after first login<\/td><td>Getting new access tokens without logging in again<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: name both server to server flows and say when each fits.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q21: What is the JWT bearer flow good for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Server to server access with a certificate and no interactive login.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The client signs a short lived token with its private key, and Salesforce checks it against the certificate on the app.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q22: Which flow suits a web application with a user present?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The web server flow, which uses an authorisation code exchanged on the server.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The user logs in on Salesforce&#8217;s page, so the web app never sees their password.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What is the callback URL for? Where Salesforce sends the authorisation code after login.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q23: Which flow suits a mobile or desktop app?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The web server flow with PKCE (a code challenge). The older user agent flow is no longer recommended.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">PKCE protects the authorisation code on devices that cannot keep a client secret safe.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: mention PKCE. It shows current OAuth knowledge.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q24: What is a refresh token for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Getting a new access token without asking the user to log in again.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Store it securely, because anyone with the refresh token can get new access tokens until it is revoked.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q25: Which flow gives no refresh token?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The client credentials and JWT bearer flows. They simply request a new access token when needed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Since no user logs in, there is nothing to refresh.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q26: Why is the username and password flow discouraged?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It sends a real password, defeats the point of OAuth, and Salesforce blocks it by default in new orgs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Move integrations that use it to client credentials or JWT bearer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say how you would migrate away from it, not just that it is bad.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q27: What is a connected app?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The definition in Salesforce that an outside client authenticates against, with its OAuth settings and policies.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">External client apps are the newer model for the same job, with better packaging and security defaults.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What are external client apps? The newer model for OAuth clients, replacing connected apps over time.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q28: What are scopes for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Limiting what the token can do, like api for API access or refresh_token for long lived access.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Give each integration only the scopes it needs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q29: Who manages the token in Apex callouts?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/named-credentials-in-apex-callouts\/\">A named credential<\/a>, which gets and refreshes the token for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Your Apex calls callout:Partner_API, and Salesforce adds the current token to each request.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q30: What is an external credential?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The authentication part of the newer named credential model.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It holds the OAuth or other auth settings, and permission sets give users access through principals.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q31: How do you restrict which users can use a connected app?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Set the app to &#8220;Admin approved users are pre-authorized&#8221;, then give access through profiles or permission sets.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Only users with that access can use the app, which stops other users authorising it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q32: What is the device flow?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An OAuth flow for devices with no easy keyboard, like a command line tool or a TV app. The device shows a code, the user approves it on another device, and the app then gets its token.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q33: How do you revoke an integration&#8217;s access quickly?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Revoke its tokens in the connected app&#8217;s OAuth usage page, rotate its secret or certificate, or freeze the integration user. Freezing stops everything at once while you investigate.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q34: Where should a client secret live?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In the external credential or the client&#8217;s own secret store, never in code.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Rotate secrets on a schedule, and right away if anyone who knew them leaves.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Integration Patterns Interview Questions on Middleware and Errors<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q35: When do you need middleware?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When several systems must be connected, data must be transformed, and integrations must be <a href=\"https:\/\/swapnilzambare.com\/blog\/mulesoft-composer-for-admins\/\">monitored in one place<\/a>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: Salesforce, SAP, a warehouse system and a billing platform all sharing orders.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q36: What does middleware give you that point to point does not?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Transformation, routing, retries, monitoring, and one place to change a mapping.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When a field changes in SAP, you update one mapping, not five separate integrations.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: give a concrete example of a mapping change in one place.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q37: What is the cost?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A platform to license and run, plus people with the skills to build on it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For two systems, that cost may be more than the problem it solves.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q38: When is point to point fine?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Two systems, a stable contract and low volume.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add logging and a reconciliation job, and it can run well for years.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you keep it maintainable? One class per integration and mappings in custom metadata.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q39: What is the risk of many point to point links?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Every system knows about every other, so one change ripples everywhere.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Five systems connected directly can need up to ten separate integrations to maintain.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q40: What is idempotency and why does it matter?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An operation that can run twice with the same result, which makes retries safe.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Networks fail and systems retry, so every integration that creates data should be idempotent.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: always connect idempotency to retries and external IDs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q41: How do you make a create idempotent?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use an external ID, so a repeat upserts instead of inserting again.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: upsert orders on ERP_Order_Id__c, so a resent order updates the existing record.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q42: What is a dead letter queue?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A place for messages that failed repeatedly, so they are not lost or retried forever.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Someone reviews them, fixes the cause, and replays them. In Salesforce it can be a custom object of failed requests.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you replay them? A scheduled job or an admin action that resends each message.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q43: What belongs in an integration log?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The direction, record identifiers, status, timing and error, with no personal data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add a <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-error-logging-framework\/\">correlation ID<\/a> shared with the partner, so both sides can find the same request.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q44: How do you alert on a broken integration?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Monitor throughput and errors, and alert on silence as well as on failures.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: alert if no orders were sent in two hours during business hours, as well as when errors pass a threshold.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q45: Why alert on silence?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because a stopped integration produces no errors at all.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A broken scheduler or expired token can mean nothing runs, and nothing fails visibly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: &#8220;alert on silence&#8221; is a phrase that impresses interviewers.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q46: What is a reconciliation job?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A scheduled comparison of both systems that catches whatever the normal flow missed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: each night, compare yesterday&#8217;s order IDs in Salesforce and the ERP, and resend any that are missing.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q47: What is a correlation ID?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A unique ID sent with each request and logged by both systems, so a single business transaction can be traced across them. Example: an X-Correlation-Id header with the Salesforce order ID.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q48: How do you handle data conflicts between two systems?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Decide a system of record for each field, and only sync that field one way. If both systems can change it, agree a rule like last change wins using timestamps, and log conflicts for review.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q49: Should every integration have one?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Anything where a missing record matters, which is most financial and customer data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Financial, order and customer data almost always needs one.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Scenario Based Integration Patterns Interview Questions<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q50: Scenario: a sales rep needs a live credit score on the opportunity. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Request and reply, with a timeout and a Continuation if the service can be slow.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Cache the score on the opportunity with a date, so the rep does not call the service every time the page opens.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q51: Scenario: a warehouse must know when an order ships. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Fire and forget, through a platform event or Change Data Capture.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The warehouse subscribes and reacts; Salesforce does not wait for it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Should the warehouse get the whole order? Send the IDs and key fields, and let it fetch more if needed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q52: Scenario: a product catalogue of 400,000 rows refreshes nightly. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Batch data synchronisation with Bulk API 2.0.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Upsert on the product&#8217;s external ID, schedule it outside business hours, and check the failed results each morning.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q53: Scenario: a partner portal creates cases. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Remote call in, through the REST API or a purpose built Apex REST endpoint.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use a dedicated integration user with access to create cases only, and return clear errors.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q54: Scenario: eight years of invoices must be visible but not stored. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Data virtualisation with Salesforce Connect.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The invoices stay in the finance system, and users see them as an Invoices related list on the account.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q55: Scenario: the business then asks for a dashboard on those invoices. What changes?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Virtualised data is hard to report on, so load a summary into Salesforce for the dashboard.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a nightly job loads total invoiced per account per month into a custom object.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q56: Scenario: a partner API goes down for an hour. What should your design do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Queue the work, retry with backoff, and alert when the queue grows.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Store pending requests in a custom object or platform events, so nothing is lost during the outage.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: mention a dead letter queue for messages that keep failing.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q57: Scenario: retries created duplicate orders. What was missing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Idempotency, usually through an external ID or an idempotency key.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Send the Salesforce order ID as the key, so the partner recognises a repeat.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q58: Scenario: an integration stopped two days ago and nobody noticed. What do you add?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Monitoring that alerts on silence as well as on errors.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Also add a reconciliation job, so gaps are found even if alerts fail.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q59: Scenario: five systems each call each other directly. What do you propose?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Middleware, so each system has one place to integrate with.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Start by moving the busiest links first, and keep the rest until they need changes.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q60: Scenario: the company has two systems and no middleware budget. What do you say?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Point to point is reasonable here, with logging and a reconciliation job.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Design it so moving to middleware later is easy: keep mappings in one class or in custom metadata.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q61: Scenario: a token expires hourly and the job fails. What is the fix?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A named credential with OAuth, so Salesforce refreshes the token for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Remove any custom token handling code once the credential is in place.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q62: Scenario: an integration user can see every record. Is that acceptable?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Only if the integration truly needs it, and the permission set should be reviewed regularly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Most integrations need a few objects; give exactly those, and use the Salesforce Integration licence with API Only.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q63: Scenario: an outside system needs to call Salesforce but cannot store secrets safely. What do you do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Put a small service or middleware in between that holds the credentials securely and calls Salesforce for it, or use a flow with a user present, like the web server flow with PKCE, so no long lived secret is stored.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q64: Scenario: an Agentforce agent must look up order status in an ERP. Which pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Request and reply through an Apex or flow action that calls the ERP with a named credential and a short timeout. Return a short, clear status the agent can explain, and handle the ERP being down gracefully.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q65: Scenario: an interviewer asks you to design an integration in five minutes. Where do you start?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Who initiates, is a reply needed, what volume and what timing, then the pattern and the API.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Who starts the call, whether a reply is needed now, the volume and frequency, which system owns each field, and how failures are retried and noticed. Then pick the pattern.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Common Mistakes Candidates Make<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Naming an API before naming a pattern, the habit Integration Patterns Interview Questions are built to expose<\/li>\r\n\r\n<li>Choosing request and reply when nobody is waiting<\/li>\r\n\r\n<li>Building record by record calls for bulk work<\/li>\r\n\r\n<li>Ignoring idempotency and then retrying<\/li>\r\n\r\n<li>Monitoring errors but not silence<\/li>\r\n\r\n<li>Proposing middleware with no reason beyond fashion<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">More Integration Patterns Interview Questions<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q66: What is the UI update based on data changes pattern?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Pushing changes to a user&#8217;s screen as they happen, for example with a component that subscribes to platform events or change events.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q67: What is an outbound message?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-outbound-messages\/\">SOAP message<\/a> sent automatically to an endpoint when a record changes, with built in retries. It is older but still useful for simple notifications.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q68: What adapters can Salesforce Connect use?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">OData 2.0, OData 4.0, a cross org adapter for other Salesforce orgs, and custom adapters built with the Apex Connector Framework.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q69: What is a system of record?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The one system that owns a piece of data and has the final say when systems disagree.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can different fields have different owners? Yes, ownership is often decided per field.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q70: What is MuleSoft&#8217;s role in Salesforce integration?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is the Salesforce owned middleware platform, used to connect many systems, transform data and manage APIs centrally.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q71: What is API led connectivity?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A layered design with system APIs that talk to back ends, process APIs that combine them, and experience APIs shaped for each consumer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q72: How do you handle a partner API rate limit?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Queue the work, send it in batches, and back off and retry when the partner returns a rate limit response.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q73: How do you change an integration without breaking the partner?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Version the contract. Keep the old version working, add the new one beside it, and agree a date to retire the old one.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q74: What is a good integration runbook?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A short document for each integration: what it does, who owns it, how to check it is healthy, common errors and fixes, how to replay failed messages, and who to call at the partner.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q75: How do you load test an integration?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Send realistic volumes, including peaks like month end, into a full sandbox, and watch governor limits, API usage, lock errors and partner response times. Fix the slowest step first.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q76: How do you test an integration end to end?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Mock callouts in Apex tests, then run full tests in a sandbox against the partner&#8217;s test system, with a separate named credential for each environment.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Also test failure cases on purpose: partner down, bad data, duplicates and expired tokens.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Best Practices to Mention in an Interview<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Decide the pattern from the requirement, then pick the API<\/li>\r\n\r\n<li>Keep the user transaction free of outside calls where you can<\/li>\r\n\r\n<li>Make every operation idempotent<\/li>\r\n\r\n<li>Use named credentials and OAuth rather than stored passwords<\/li>\r\n\r\n<li>Log the direction, identifiers, status and timing of every message<\/li>\r\n\r\n<li>Alert on silence as well as failure<\/li>\r\n\r\n<li>Add a reconciliation job wherever a missing record matters<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.integration_patterns_and_practices.meta\/integration_patterns_and_practices\/\" target=\"_blank\" rel=\"noopener noreferrer\">Integration Patterns and Practices<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.api_rest.meta\/api_rest\/\" target=\"_blank\" rel=\"noopener noreferrer\">REST API Developer Guide<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.platform_events.meta\/platform_events\/\" target=\"_blank\" rel=\"noopener noreferrer\">Platform Events Developer Guide<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Integration Patterns Interview Questions start from the requirement<\/li>\r\n\r\n<li>Four questions narrow it to one pattern before any API is chosen<\/li>\r\n\r\n<li>Request and reply makes the user wait, so use it only when they must<\/li>\r\n\r\n<li>Fire and forget belongs on a platform event<\/li>\r\n\r\n<li>Bulk work belongs in a scheduled sync, not record by record calls<\/li>\r\n\r\n<li>Idempotency, logging and reconciliation are what make it reliable<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is Next<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Coming soon: Large data volume interview questions and platform cache.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.<\/p>\n","protected":false},"author":1,"featured_media":2677,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[250,8,90],"tags":[68,99,81,91],"swapz_series":[],"class_list":["post-2680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-interview-questions","category-salesforce","category-salesforce-interview","tag-advanced","tag-architecture","tag-integration","tag-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Integration Patterns Interview Questions Guide<\/title>\n<meta name=\"description\" content=\"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integration Patterns Interview Questions Guide\" \/>\n<meta property=\"og:description\" content=\"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"Swapnil Zambare - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-20T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T06:18:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Swapnil Zambare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Swapnil Zambare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"20 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/\"},\"author\":{\"name\":\"Swapnil Zambare\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\"},\"headline\":\"Integration Patterns Interview Questions and OAuth Flows\",\"datePublished\":\"2026-11-20T03:30:00+00:00\",\"dateModified\":\"2026-11-22T06:18:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/\"},\"wordCount\":3953,\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/integration-patterns-interview-questions-featured.png\",\"keywords\":[\"Advanced\",\"Architecture\",\"Integration\",\"Interview Questions\"],\"articleSection\":[\"Developer Interview Questions\",\"Salesforce\",\"Salesforce Interview\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/\",\"name\":\"Integration Patterns Interview Questions Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/integration-patterns-interview-questions-featured.png\",\"datePublished\":\"2026-11-20T03:30:00+00:00\",\"dateModified\":\"2026-11-22T06:18:51+00:00\",\"description\":\"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/integration-patterns-interview-questions-featured.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/integration-patterns-interview-questions-featured.png\",\"width\":2400,\"height\":1260,\"caption\":\"Integration Patterns Interview Questions featured image with sample question cards\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/integration-patterns-interview-questions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integration Patterns Interview Questions and OAuth Flows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"name\":\"Swapnil Zambare - Blog\",\"description\":\"Salesforce &amp; Tech Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\",\"name\":\"Swapnil Zambare - Blog\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Swapnil Zambare - Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/theSwapnilZambare\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\",\"name\":\"Swapnil Zambare\",\"sameAs\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\"],\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/author\\\/swapnil-zambare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integration Patterns Interview Questions Guide","description":"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"Integration Patterns Interview Questions Guide","og_description":"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.","og_url":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/","og_site_name":"Swapnil Zambare - Blog","article_published_time":"2026-11-20T03:30:00+00:00","article_modified_time":"2026-11-22T06:18:51+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png","type":"image\/png"}],"author":"Swapnil Zambare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Swapnil Zambare","Est. reading time":"20 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#article","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/"},"author":{"name":"Swapnil Zambare","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a"},"headline":"Integration Patterns Interview Questions and OAuth Flows","datePublished":"2026-11-20T03:30:00+00:00","dateModified":"2026-11-22T06:18:51+00:00","mainEntityOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/"},"wordCount":3953,"publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png","keywords":["Advanced","Architecture","Integration","Interview Questions"],"articleSection":["Developer Interview Questions","Salesforce","Salesforce Interview"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/","url":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/","name":"Integration Patterns Interview Questions Guide","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#primaryimage"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png","datePublished":"2026-11-20T03:30:00+00:00","dateModified":"2026-11-22T06:18:51+00:00","description":"Integration Patterns Interview Questions with answers on request and reply, fire and forget, batch sync, remote call in, OAuth flows and middleware.","breadcrumb":{"@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#primaryimage","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/integration-patterns-interview-questions-featured.png","width":2400,"height":1260,"caption":"Integration Patterns Interview Questions featured image with sample question cards"},{"@type":"BreadcrumbList","@id":"https:\/\/swapnilzambare.com\/blog\/integration-patterns-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/swapnilzambare.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Integration Patterns Interview Questions and OAuth Flows"}]},{"@type":"WebSite","@id":"https:\/\/swapnilzambare.com\/blog\/#website","url":"https:\/\/swapnilzambare.com\/blog\/","name":"Swapnil Zambare - Blog","description":"Salesforce &amp; Tech Guides","publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/swapnilzambare.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/swapnilzambare.com\/blog\/#organization","name":"Swapnil Zambare - Blog","url":"https:\/\/swapnilzambare.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","width":512,"height":512,"caption":"Swapnil Zambare - Blog"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/in\/theSwapnilZambare"]},{"@type":"Person","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a","name":"Swapnil Zambare","sameAs":["https:\/\/swapnilzambare.com\/blog"],"url":"https:\/\/swapnilzambare.com\/blog\/author\/swapnil-zambare\/"}]}},"_links":{"self":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/comments?post=2680"}],"version-history":[{"count":3,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2680\/revisions"}],"predecessor-version":[{"id":3535,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2680\/revisions\/3535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media\/2677"}],"wp:attachment":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media?parent=2680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/categories?post=2680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/tags?post=2680"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=2680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}