Close Menu
SalesforceCodex
    Facebook X (Twitter) Instagram
    Trending
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    • How to Implement Basic Queueable Chaining in Salesforce Apex
    • How to Suppress PMD Warnings in Salesforce Apex
    • Top 10 PMD Issues Salesforce Developers Should Focus on in Apex
    Facebook X (Twitter) Instagram
    SalesforceCodex
    Subscribe
    Saturday, June 7
    • Home
    • Architecture
    • Salesforce
      • News
      • Apex
      • Integration
      • Books Testimonial
    • Questions
    • Certification
      • How to Prepare for Salesforce Integration Architect Exam
      • Certification Coupons
    • Integration Posts
    • Downloads
    • About Us
      • Privacy Policy
    SalesforceCodex
    Home»Question»Salesforce Integration Interview Questions

    Salesforce Integration Interview Questions

    Dhanik Lal SahniBy Dhanik Lal SahniFebruary 2, 2021Updated:June 4, 20258 Comments6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Salesforce Integration Interview Questions
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Integration is very important for Salesforce applications. Streaming API is one of the important integration concepts. This post is about the top Salesforce Integration Interview Questions question.

    Q.1 What is Streaming API?

    Ans. Streaming API is used to push notifications (information, data, data changes, etc.) to clients. Notifications are sent from Salesforce to the client based on criteria that we define.

    Let us take an example, when the server is down, you want to notify your agent to work on another server. We can use streaming API to notify agents.

    Q.2 How to create a Streaming API?

    We can build streaming API using multiple ways. Below are some important approaches to build streaming API.

    1. HTTP using long poll: Long poll is a method used by HTTP servers to hold a connection for a client until data becomes available on the server.  If data is immediately available, the connection is not held.
    2. Comet over HTTP – Comet is a web application model in which a long-held HTTPS request allows a web server to push data to a browser, without the browser explicitly requesting it. The CometD framework is an implementation of the Bayeux protocol.
    3. XMPP – Designed for publish-subscribe on the web but is not HTTP-based.  XMPP(Extensible Messaging and Presence Protocol) has a lot of functionality beyond what is needed to build a streaming API.
    4. HTML 5 Event Source: The EventSource interface is the web content’s interface to server-sent events. An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format. The connection remains open until closed by calling EventSource.close(). Server-sent events are unidirectional.

    Q.3 What is push technology?

    Ans. Push technology is an internet communication system in which the transaction request is generated by the central web server or publisher. Push technology is the opposite of pull technology, where the information transmission request is made by the clients or receivers.

    Q.4 What is Bayeux Protocol?

    Ans: Bayeux is a protocol for transporting asynchronous messages, primarily over HTTP.

    Q.5 What is Message Reliability?

    Ans. Message reliability provides for end-to-end guaranteed delivery and order of messages, regardless of how many intermediaries are involved, and how many network hops are required to deliver the message from the client to the service. Message reliability is based on an industry standard for reliable message-based communication that maintains a session at the transport level. 

    Q.6 What is Message Durability?

    Ans. Durability keeps messages persistent for any suitable consumer to consume them.

    Q.7 What is the difference between Streaming API and REST API?

    Ans:

    REST API is a web service that follows a request-response pattern.  User will make an individual request for information from the REST API and receive the appropriate data in a single response. After the response is sent back to the user, the connection closes only to be re-opened when the user makes another request to the API. REST APIs are perfect for users wanting a “snapshot” of data where the information does not change very frequently.

    Streaming API:

    Streaming APIs maintain a persistent connection that continuously sends updated data to the user until the connection is terminated.  Streaming APIs are perfect when a user needs to consume a constant flow of rapidly updating live data. The server repeatedly sends responses back with updated information until the connection is eventually closed
    by the user.

    Q.8 What is the difference between Streaming API and outbound message?

    Outbound messageStreaming API
    Outbound messaging is primarily server-drivenStreaming API is client-driven;
    If the server went down for some reason, and we bring it back up, it would have to wait for messages to be delivered from Salesforce, which could take significant timeIf the client is down for some reason and we bring it back up, we can replay the older message immediately. Bringing the external source up to date much quicker, and getting the messages in the correct order.  
    Can only be sent to a single endpoint  A limited number of subscribers per topic.
    It is strongly typed and uses XMLIt is loosely typed and uses JSON.
    Outbound Message has an in-built retry mechanism. If the endpoint is unavailable, messages will stay in the queue until sent successfully, or until they are 24 hours old.Salesforce stores PushTopic events, generic events, and standard-volume events for 24 hours and high-volume events for 72 hours. We can use EventBus.RetryableException to retry if something fails.
    It might be loose order of delivery.Streaming API are guaranteed for ordered delivery.

    Q.9. What are the types of Streaming API?

    Ans.

    1. Generic Events:

    Generic events to send custom notifications that are not tied to Salesforce data changes. Like Broadcast notifications to a target set of users, specific teams, or your entire org.

    2. Push Topic:

    PushTopic events provide a secure and scalable way to receive notifications for changes to Salesforce data that match a SOQL query you define. Eg, Capture changes for the fields and records that match a SOQL query like capture closed cases.

    3. Change Data Capture:

    Receive near-real-time changes in Salesforce records, and synchronize corresponding records in an external data store. Like we want to update the external system when some data is changed in the salesforce system.

    4. Platform Event:

    Platform events are secure and scalable messages that contain data. Publishers publish event messages that subscribers receive in real-time. Use platform events to connect business processes in Salesforce and external apps through the exchange of real-time event data.

    Q.10 What is the difference between Change Data Capture vs Push Topic?

    Ans. Change data capture and Push topic both are used for data change events. Below is some difference in both events

    Change Data CapturePush Topic
    We can subscribe via apex triggersWe cannot subscribe using the apex trigger
    We cannot use filter subscriptions like giving only closed case.It supports filter subscription
    We can’t choose fields to include in event notifications for Salesforce record changesWe can use fields to include in the event notification
    We can encrypt field data with Shield Platform EncryptionWe cannot encrypt field data with Shield Platform Encryption
    We have 3 days of the event retention period        We can retain only 1 day
    We can create different versions of the event schemaWe cannot create a versioning schema

    Other Salesforce Interview Questions Posts

    Salesforce Apex Interview Question

    Salesforce Interview Question – Security

    salesforce integration interview questions Salesforce Interview Question salesforce interview question and answer
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleBasics of Securing Salesforce Application
    Next Article Custom Salesforce Knowledge Component using LWC
    Dhanik Lal Sahni
    • Website
    • Facebook
    • X (Twitter)

    With over 18 years of experience in web-based application development, I specialize in Salesforce technology and its ecosystem. My journey has equipped me with expertise in a diverse range of technologies including .NET, .NET Core, MS Dynamics CRM, Azure, Oracle, and SQL Server. I am dedicated to staying at the forefront of technological advancements and continuously researching new developments in the Salesforce realm. My focus remains on leveraging technology to create innovative solutions that drive business success.

    Related Posts

    By Dhanik Lal Sahni9 Mins Read

    10 Salesforce Chrome Extensions to Boost Your Productivity

    June 1, 2025
    By Dhanik Lal Sahni4 Mins Read

    How to Build a Generic Modal Window in Lightning Web Component

    May 26, 2025
    By Dhanik Lal Sahni6 Mins Read

    Top 10 Salesforce Flow Features of Salesforce Summer ’25

    May 11, 2025
    View 8 Comments

    8 Comments

    1. Pingback: What are Skinny Tables? - Salesforce Codex - Stories

    2. Pingback: What is Light DOM - Salesforce Codex

    3. Pingback: What is Data Skew? - Salesforce Codex

    4. Pingback: What is PK Chunking? - SalesforceCodex

    5. Pingback: Types Of Integration Patterns in Salesforce - SalesforceCodex

    6. Pingback: 20 Scenario-based Salesforce Developer Interview Questions

    7. Pingback: Salesforce Architect Interview Questions - Salesforce Codex

    8. Pingback: Questions for Tech Lead/Salesforce Architect Interview

    Leave A Reply Cancel Reply

    Ranked #1 SALESFORCE DEVELOPER BLOG BY SALESFORCEBEN.COM
    Featured on Top Salesforce Developer Blog By ApexHours
    Recent Posts
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    Ranked in Top Salesforce Blog by feedspot.com
    RSS Recent Stories
    • Top 20 Salesforce Data Cloud Interview Questions & Answers for Admins June 5, 2025
    • How to Connect Excel to Salesforce to Manage Your Data and Metadata February 9, 2025
    • Difference Between With Security and Without Security in Apex January 2, 2025
    • Top Reasons to Love Salesforce Trailhead: A Comprehensive Guide December 5, 2024
    • How to Utilize Apex Properties in Salesforce November 3, 2024
    Archives
    Categories
    Tags
    apex (111) apex code best practice (8) apex rest (11) apex trigger best practices (4) architecture (22) Asynchronous apex (9) AWS (5) batch apex (9) batch processing (4) code analysis (3) code optimization (8) custom metadata types (5) design principle (9) flow (15) future method (4) google (6) google api (4) integration (19) integration architecture (6) lighting (8) lightning (65) lightning-combobox (5) lightning-datatable (10) lightning component (31) Lightning web component (63) lwc (52) named credential (8) news (4) optimize apex code (4) optimize apex trigger (3) Permission set (4) pmd (3) Queueable (9) rest api (23) S3 Server (4) salesforce (142) salesforce apex (47) salesforce api (4) salesforce api integration (5) Salesforce Interview Question (4) salesforce news (5) salesforce question (5) solid (6) tooling api (5) Winter 20 (8)

    Get our newsletter

    Want the latest from our blog straight to your inbox? Chucks us your detail and get mail when new post is published.
    * indicates required

    Ranked #1 SALESFORCE DEVELOPER BLOG BY SALESFORCEBEN.COM
    Featured on Top Salesforce Developer Blog By ApexHours
    Recent Posts
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    Ranked in Top Salesforce Blog by feedspot.com
    RSS Recent Stories
    • Top 20 Salesforce Data Cloud Interview Questions & Answers for Admins June 5, 2025
    • How to Connect Excel to Salesforce to Manage Your Data and Metadata February 9, 2025
    • Difference Between With Security and Without Security in Apex January 2, 2025
    • Top Reasons to Love Salesforce Trailhead: A Comprehensive Guide December 5, 2024
    • How to Utilize Apex Properties in Salesforce November 3, 2024
    Archives
    Categories
    Tags
    apex (111) apex code best practice (8) apex rest (11) apex trigger best practices (4) architecture (22) Asynchronous apex (9) AWS (5) batch apex (9) batch processing (4) code analysis (3) code optimization (8) custom metadata types (5) design principle (9) flow (15) future method (4) google (6) google api (4) integration (19) integration architecture (6) lighting (8) lightning (65) lightning-combobox (5) lightning-datatable (10) lightning component (31) Lightning web component (63) lwc (52) named credential (8) news (4) optimize apex code (4) optimize apex trigger (3) Permission set (4) pmd (3) Queueable (9) rest api (23) S3 Server (4) salesforce (142) salesforce apex (47) salesforce api (4) salesforce api integration (5) Salesforce Interview Question (4) salesforce news (5) salesforce question (5) solid (6) tooling api (5) Winter 20 (8)

    Get our newsletter

    Want the latest from our blog straight to your inbox? Chucks us your detail and get mail when new post is published.
    * indicates required

    Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn Reddit Telegram
    © 2025 SalesforceCodex.com. Designed by Vagmine Cloud Solution.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.