November 1, 2026

Introduction to SAP

What is SAP?

SAP stands for Systems, Applications, and Products in Data Processing. It is enterprise resource planning (ERP) software that integrates important business functions into a unified platform.

Why it matters: By bringing business information together, SAP helps organizations streamline operations, improve efficiency, and gain real-time insights.

Why SAP?

SAP offers integrated enterprise applications designed to support business operations across departments and locations.

🔗

Business Integration

Integrates business processes within a common software environment.

🗄️

Database Support

The original material describes database-independent operation and SAP HANA as SAP's own database technology.

💻

Operating System Support

Supports different operating system environments depending on the SAP product and deployment.

🌐

Multilingual Capabilities

Supports international business operations and multiple languages.

🛡️

Security & Governance

Role-based access and authorization controls help govern user permissions.

☁️

Cloud & Hybrid Options

Deployment options can include cloud, on-premises, and hybrid environments.

📱

Web & Mobile Access

Provides web-based and mobile interfaces in supported SAP solutions.

🔄

System Integration

Supports integration with third-party tools and non-SAP systems for data exchange.

🌍

Global Business

Supports international business processes involving different currencies and exchange rates.

🧩

Modular Structure

Organizations can use relevant SAP applications and modules according to their needs.

📊

Centralized Information

Helps departments share consistent information across business processes.

⚙️

End-to-End Solutions

Supports business software implementation, testing, operation, and maintenance.

Key takeaway: SAP helps organizations connect people, processes, and information across the enterprise. Specific capabilities depend on the SAP product, version, configuration, and deployment.

History of SAP

SAP is a German enterprise software company founded in 1972 in Walldorf, Germany, by five former IBM employees.

🏢

Company Origin

SAP was established to develop standard enterprise software that could integrate business processes and support real-time data processing.

👨‍💻

The Five Founders

Dietmar Hopp, Hasso Plattner, Claus Wellenreuther, Klaus Tschira, and Hans-Werner Hector.

1972

SAP Founded

Five former IBM employees founded SAP in Walldorf, Germany. Early development focused on business applications and real-time data processing.

1972

Early R/1 Architecture

The supplied material identifies financial accounting, invoice verification, and inventory management among the early application areas.

1975

Company Logo

The original presentation records this as a milestone in SAP's development.

1978

Language Expansion

The original presentation notes French-language availability for SAP GUI.

1979

SAP R/2

SAP introduced R/2, expanding its enterprise software capabilities.

1981

Company Name Description

The supplied material records the expanded SAP name as Systems, Applications, and Products in Real-Time Data Processing.

1988

Public Listing

The original presentation records SAP going public in 1988.

1992

SAP R/3

The launch of R/3 marked an important stage in SAP's enterprise software growth.

2005

SAP AG

The supplied presentation identifies SAP AG as a company-name milestone.

2014

SAP SE

SAP adopted the legal form Societas Europaea, becoming SAP SE.

First customer: The original presentation identifies Imperial Chemical Industries as SAP's first customer.

October 25, 2026

SAP Cloud Platform Integration (CPI) Interview Questions

SAP CPI Interview Questions

30 questions from beginner to advanced, each with a short answer and a real-world scenario. Tap a question to open it.

BEGINNER

Q01What is SAP CPI and what is its primary purpose?

Answer. SAP CPI (Cloud Platform Integration) is cloud-based middleware that connects SAP and non-SAP applications across on-premise and cloud environments using adapters, message transformation, and routing.

Scenario. A company syncs customer data from S/4HANA to Salesforce. CPI transforms XML to JSON and posts it via REST API, keeping both systems in sync without custom code in either application.

Q02What is an iFlow and what are its main components?

Answer. An iFlow (Integration Flow) is the graphical unit of integration logic in CPI. Its main components are Sender/Receiver participants, Channels (adapters), Processing steps (mapping, routing, scripting), and Start/End events.

Scenario. A PO approval iFlow: S/4HANA sends via IDoc adapter → Content Modifier adds a timestamp → Message Mapping converts IDoc XML to JSON → HTTPS adapter posts to the procurement portal.

Q03What types of adapters are available in SAP CPI?

Answer. HTTPS, SOAP, REST, OData (v2/v4), IDoc, RFC, SFTP, FTP, Mail (SMTP/IMAP), JMS, AMQP, Kafka, AS2, SuccessFactors, Ariba, and more. Adapters define the protocol, authentication, and message format at the channel level.

Scenario. Employee onboarding: SFTP adapter picks up a CSV from an HR vendor → SuccessFactors adapter checks for duplicates → SOAP adapter creates the employee in the legacy payroll system.

Q04What is the difference between synchronous and asynchronous processing?

Answer. Synchronous: the sender waits for a response and the connection stays open during processing. Asynchronous: the sender fires the message and disconnects immediately, which suits bulk or decoupled scenarios where no immediate reply is needed.

Scenario. A web shop fetches live stock from S/4HANA synchronously, so the page waits. Overnight invoice uploads use async JMS queues, so the shop disconnects while thousands of invoices process in the background.

Q05What is a Content Modifier and when would you use it?

Answer. Content Modifier sets, modifies, or deletes message headers, exchange properties, or the message body without scripting. Use it to inject timestamps, set dynamic target URLs, or extract values via XPath into properties.

Scenario. An invoice iFlow extracts InvoiceID from the payload via XPath into an exchange property. The SFTP adapter later names the archived file Invoice_${property.InvoiceID}.xml automatically.

Q06What is the Message Monitor and what information does it provide?

Answer. The Message Monitor is the operational dashboard in the CPI web UI. It shows all processed messages with status (Completed, Failed, Retry), payload, headers, error details, and step-by-step logs. It is the first place to check when troubleshooting.

Scenario. A nightly batch fails at 2 AM. The team filters for Failed messages, opens the log, and sees “SFTP host unreachable”. They fix connectivity and use Retry, with no need to retrigger the source system.

Q07What is the difference between an Exchange Property and a Message Header?

Answer. An Exchange Property is an internal variable that exists only within the iFlow and is never forwarded to the receiver. A Message Header is part of the message envelope and can be forwarded to the target. Use properties for processing flags and counters, headers for values the target must receive.

Scenario. A loop counter “RecordCount” is stored as a property (internal only). A header “X-Correlation-ID” is forwarded to the target REST API so it can trace the originating request end to end.

Q08What is XSLT Mapping and when would you prefer it over Graphical Mapping?

Answer. XSLT uses a stylesheet to transform XML. Prefer it when logic is complex: sorting, grouping, aggregates, or advanced conditionals. Prefer Graphical Mapping for simple field-to-field mappings that are easier to maintain visually.

Scenario. A retail integration converts an order XML grouped by category into a flat XML for the warehouse. The grouping and sorting is handled cleanly in XSLT with xsl:for-each-group, while simple field mappings use a separate graphical step.

Q09What is the role of Integration Advisor in SAP Integration Suite?

Answer. Integration Advisor creates and manages B2B Message Implementation Guidelines (MIGs) and Mapping Guidelines (MAGs) based on industry standards (EDIFACT, ANSI X12, IDoc). It auto-generates XSLT artifacts, removing manual B2B mapping work.

Scenario. A retailer exchanges EDIFACT ORDERS with 50 suppliers. Instead of hand-coding 50 XSLT maps, Integration Advisor creates one MIG for the standard and exports ready-to-deploy XSLT artifacts into CPI iFlows.

Q10What is the purpose of the Groovy Script step in SAP CPI?

Answer. Groovy Script provides custom logic when built-in steps are insufficient: complex payload manipulation, dynamic header construction, calling Java libraries, conditional logic, regex operations, and custom error messages.

Scenario. A banking iFlow must mask account numbers before forwarding to a reporting system. A Groovy script reads the JSON body, uses regex to replace the middle digits with asterisks, and writes the payload back, which a standard mapping step cannot do.

INTERMEDIATE

Q11Explain the Splitter and Aggregator pattern with a practical use case.

Answer. The Splitter breaks a bulk message into individual sub-messages for independent processing. The Aggregator collects processed sub-messages and reassembles them using a correlation expression and completion condition. Splitter types: General (XPath), IDoc, ZIP/multipart.

Scenario. An ERP sends a batch XML with 500 sales orders. The General Splitter creates 500 messages, each enriched with delivery data via an API call. The Aggregator recombines them into one batch XML posted to the logistics system.

Q12What security configurations are available for inbound and outbound connections?

Answer. Inbound (sender to CPI): Basic auth, Client Certificate (mTLS), OAuth 2.0 (Client Credentials / Auth Code), API Key. Outbound (CPI to receiver): Basic auth, OAuth 2.0, Client Certificate, Principal Propagation (SSO), SSH keys for SFTP. Credentials live in Security Material and are never hardcoded in iFlows.

Scenario. A bank partner sends files via AS2 with mutual TLS. Outbound to core banking uses OAuth 2.0 client credentials; the client secret is stored as a Secure Parameter and referenced in the channel, never visible in the iFlow.

Q13What is the difference between JMS and AMQP adapters?

Answer. JMS connects to the built-in SAP message broker inside CPI and provides reliable delivery and retry within the SAP ecosystem. AMQP connects to external brokers (Azure Service Bus, ActiveMQ, RabbitMQ). Choose JMS for decoupling within SAP, and AMQP when an external broker is shared across systems.

Scenario. Orders within CPI use JMS queues for reliable async retry. Cross-company events shared with non-SAP consumers use AMQP to connect to an Azure Event Hub shared by logistics, finance, and analytics teams.

Q14How do you implement error handling using the Exception Subprocess?

Answer. The Exception Subprocess activates when an unhandled exception occurs in the main flow. Inside it you can log the error, send alerts, call a notification API, or write to a dead-letter queue. For specific steps, attach it to a Local Integration Process.

Scenario. An iFlow posts invoices to a supplier portal. On HTTP 500, the Exception Subprocess logs the invoice number, triggers an SAP Alert, and archives the failed XML to an SFTP error folder so ops can reprocess it.

Q15What is the Router step and what types of routing conditions can you configure?

Answer. The Router directs a message to one of several branches based on conditions on the payload, headers, or exchange properties. Condition types: XPath (XML), JSONPath (JSON), header/property comparisons, and a Default route fallback. Only one branch executes per message.

Scenario. A Router checks the property “SourceSystem”. SAP_ECC → IDoc mapping branch. SALESFORCE → JSON-to-XML branch. Default → error notification queue for unrecognised sources.

Q16What is Externalized Configuration and why is it important for transport?

Answer. Externalized configuration extracts iFlow parameters (URLs, credential names, paths) so the same artifact deploys to Dev/QA/Prod unchanged; only parameter values differ per environment. Values are set in the Configure tab before deployment.

Scenario. One iFlow connects to S/4HANA with URL, credential alias, and path externalized. The DevOps pipeline supplies different parameter files per tenant, so promoting from Dev to Production needs no redesign.

Q17Explain how the SFTP sender adapter implements polling.

Answer. The adapter periodically checks the source for new files using a poll interval, directory path, file name pattern, and post-processing action (archive, delete, or keep). A lock mechanism prevents duplicate processing across overlapping poll cycles.

Scenario. A payroll provider drops salary files every Friday at 11 PM. The adapter polls /outbound/salary/ every 15 minutes for salary_*.csv. Processed files move to /outbound/processed/, preventing re-pickup and providing an audit trail.

Q18What is the Filter step and how does it differ from the Router step?

Answer. Filter removes content from within a message: it uses XPath to extract a subset of XML nodes and replaces the entire body with only the matching content. Router does not change the body; it decides which processing path the message takes. Filter trims the payload, Router branches execution.

Scenario. An ERP returns a 200-field product XML. A Filter step with XPath //ProductSummary keeps only name, price, and stock level, cutting bandwidth and downstream processing cost.

Q19How does the Request-Reply pattern work in SAP CPI?

Answer. Request-Reply is a synchronous mid-flow callout to an external service where a response is needed before the iFlow continues. The iFlow pauses, sends the request, receives the reply, then carries on with the enriched payload. It is used for data enrichment, separate from the final receiver.

Scenario. An order validation iFlow calls a credit-check REST service via Request-Reply. A Router then branches: score below 500 → rejection notification; above 500 → post the order to S/4HANA.

Q20What are Value Mappings in SAP CPI and how are they managed?

Answer. Value Mappings are lookup tables that map equivalent values between systems (e.g. SAP “DE” ↔ ISO “DEU” ↔ Salesforce “Germany”). They are managed in the CPI UI under Resources and shared across iFlows. The valueMapping() function performs runtime lookups, and table updates apply to all iFlows.

Scenario. SAP uses numeric product category codes while Shopify uses text slugs. A Value Mapping table stores the cross-reference. When categories are added, only the table changes, with no redeployment of the 15 iFlows that use it.

ADVANCED

Q21Describe ISA-M and how it guides SAP CPI architecture decisions.

Answer. ISA-M (Integration Solution Advisory Methodology) defines integration domains (A2A, B2B, B2G, C2B), styles, and use-case patterns. For each use case it recommends the right SAP Integration Suite capability: CPI for process integration, API Management for API-centric scenarios, Event Mesh for streaming. It prevents misusing CPI for scenarios that belong to other tools.

Scenario. An architect must integrate S/4HANA with a logistics provider (A2A → CPI iFlows) and publish APIs for mobile apps (API-centric → SAP API Management). ISA-M prevents both from being built as CPI iFlows.

Q22How would you design exactly-once delivery in SAP CPI?

Answer. Use three layers: (1) store a unique message ID in a Data Store for an idempotency check before processing; (2) use JMS queues for at-least-once delivery during outages; (3) enable JMS transactions so failed downstream processing rolls back queue consumption and allows safe retry. Together they give an exactly-once business effect.

Scenario. A payment iFlow reads PaymentID and checks the Data Store. Duplicate: end silently. New: write the ID → post to bank → commit the JMS message. If the bank call fails, the JMS transaction rolls back and retries, and the idempotency check prevents a double payment.

Q23Explain decoupled integration using JMS queues and how it improves resilience.

Answer. A sender iFlow posts to a JMS queue and terminates; a separate consumer iFlow processes from the queue. The sender is unaffected if the target is down, messages accumulate and process on recovery, consumers scale independently, and retry configuration is separated from sender logic.

Scenario. An e-commerce shop fires thousands of orders per hour while the warehouse has nightly maintenance. Without decoupling, orders fail. With JMS, the sender queues everything instantly and the consumer retries on recovery, so the shop never notices the downtime.

Q24What is Principal Propagation and when is it used?

Answer. Principal Propagation forwards the original authenticated user’s identity (SAML/OAuth token) through CPI to the backend instead of using a shared technical account. It is critical when backend access must follow the calling user’s permissions, preserving row-level security and audit trails end to end.

Scenario. An HR portal calls CPI with an employee’s OAuth token. CPI propagates the identity to S/4HANA via Cloud Connector, which returns only that employee’s payslips. With a shared technical account, all employees’ records could be returned, a serious GDPR violation.

Q25How do you handle large file processing without hitting CPI memory limits?

Answer. (1) Enable NIO streaming in the SFTP adapter so the file is processed as a stream, not loaded fully into memory. (2) Use a Splitter to break the file into chunks. (3) Use the ZIP Splitter for archives. (4) Avoid storing large payloads in exchange properties. Always test with production-volume data.

Scenario. A logistics company sends 2 million shipment records (~800 MB) daily via SFTP. NIO streaming plus a General Splitter in chunks of 5,000 records posts to the WMS in batches. Memory stays under 50 MB and the full file processes in under 20 minutes.

Q26Explain the SAP CPI Data Store, its use cases, and limitations.

Answer. The Data Store is a persistent key-value store inside the CPI tenant. Use cases: storing intermediate messages between executions, idempotency checks, caching reference data, stateful workflows. TTL is configurable. Limitations: not for high-volume storage, not a database replacement, no cross-tenant access, and performance degrades under heavy load.

Scenario. A procurement integration receives partial PO acknowledgements across several messages. Each execution writes line-item status to a Data Store keyed by PO+line. A scheduled iFlow checks whether all lines are acknowledged, then sends the consolidated ACK to the buyer.

Q27How would you implement a retry strategy with exponential back-off in SAP CPI?

Answer. CPI does not natively support exponential back-off, but you can build it: (1) a JMS queue with a retry count and dead-letter queue; (2) a Groovy script that reads the retry count, computes the delay (2^n × base seconds), and writes to a JMS retry queue with a delay header; (3) after max retries, route to the dead-letter queue and trigger an alert.

Scenario. An iFlow calls a partner API that rate-limits (HTTP 429). The Exception Subprocess reads RetryCount, computes the wait (30s, 60s, 120s, 240s), writes to the retry queue, and increments the counter. After 5 attempts: dead-letter queue plus an email alert to the integration team.

Q28What is the difference between a Local Integration Process and an Exception Subprocess?

Answer. A Local Integration Process (LIP) is a reusable iFlow fragment called via the ProcessCall step, like a subroutine, and runs in the caller’s thread. An Exception Subprocess activates only when an error occurs in the main process and is used for error recovery, not reuse. LIPs avoid copy-pasting common logic.

Scenario. 15 iFlows need the same PII masking logic. A LIP called “LIP_MaskPII” holds the Groovy script and each iFlow calls it via ProcessCall. When GDPR rules change, only the LIP is updated and redeployed.

Q29How do you approach performance tuning of SAP CPI iFlows in production?

Answer. (1) Use trace-level analysis to find slow steps. (2) Disable “Store Message” on steps unless debugging. (3) Use parallel multicast/splitter for independent paths. (4) Avoid N+1 lookup patterns in Groovy; use bulk API calls. (5) Use Value Mappings instead of scripts for code lookups. (6) Tune JMS prefetch counts and concurrency.

Scenario. An insurance claims iFlow takes 45s against a 10s SLA. Tracing shows 30s in Groovy making sequential REST calls per claim line. One bulk API call cuts that step to 4s, and a parallel Splitter brings the total to 7s.

Q30How does SAP CPI integrate with SAP Event Mesh, and when do you use event-driven over request-reply?

Answer. CPI connects to Event Mesh via the AMQP adapter (queues) or HTTP (CloudEvents). Use event-driven when multiple consumers must react independently or fan-out is needed. Use request-reply when an immediate response from a single system is required.

Scenario. S/4HANA publishes SalesOrderConfirmed to Event Mesh. Three subscribers react: CPI sends a confirmation email, the warehouse updates picking lists, and analytics refreshes the revenue dashboard, none aware of each other. With request-reply, S/4HANA would call each one serially and fail if any were down.

October 24, 2026

Access Policy in SAP CPI

Introduction

An Access Policy in SAP Cloud Integration is a security configuration that defines the rules and conditions governing who can access your integration flows or APIs, and how that access is granted. Essentially, it sets the controls for managing access to integration artifacts based on specified criteria.

SAP Integration Suite comes with default role collections that determine which tasks you are entitled to within a specific tenant (e.g. to administer the tenant, to develop integration artifacts, etc.).

Roles and role collections

A role in SAP BTP defines a set of permissions or scopes that grant access to specific features or actions in an application or service.

A role collection is a container or grouping of roles that can be assigned to a user. Instead of assigning roles directly to users, you assign role collections. A role collection can contain multiple roles from one or more applications.

In SAP Integration Suite, the default role collections apply at the tenant level and do not control access to individual integration artifacts such as integration flows, mappings, or script collections.

For this reason, SAP Integration Suite allows you to create and manage Access Policies that restrict access to specific integration artifacts by assigning custom role collections to the required users.

Features

With access policies you can restrict access to integration artifacts and to the data stored and processed by them.

With access policies, you can define artifact references for:

  • A package – by which all artifacts of the integration package and the package actions are protected.
  • A specific artifact type – for example, script collection or integration flow or any of the types shown in the screenshot below.

Pre-requisites

Access policies in the Cloud Foundry environment are associated with roles based on template CustomRoleTemplate and assigned via role collections.

Before getting started it is important that:

  • You have provisioned SAP Integration Suite within a certain subaccount on SAP BTP.
  • You are assigned the role collections related to SAP Integration Suite.

Let’s look at the step-by-step process involved in the creation and functioning of an access policy.

Creating a role collection

The first step is to create a role collection where we will be assigning the custom role we create in the next step.

Go to the SAP BTP Subaccount where your SAP Integration Suite tenant is deployed and then select Role Collections under the Security tab.

Click on the Create button, fill in the necessary details and select Create as shown below.

We have successfully created a role collection.

Creating a custom role

For creating a role select Roles under the Security tab. As we will be making a custom role, scroll down to the role template named CustomRoleTemplate under the application name it and click on the Create Role button.

Enter a role name and description for the custom role we are creating.

Enter the attribute (i.e. the access policy name with which we create in CPI) and press Enter. We can add any number of attributes here.

Note: It is important to remember the value of your role attributes, as this will be used as the name of your Access Policy.

In this step assign the role we are creating to the role collection we created earlier, as shown below.

Now we will assign the role to a user for whom the access policy should not be applied. This setup allows us to test and observe how the access policy functions by comparing the impact on both users.

In the image below you can see that the role collection is assigned to only one user.

Creating access policy in CPI

Now log in to the Integration Suite of the same subAccount and go to the Monitor tab → Integrations and APIs → Access Policies.

Creating a role

Now select the Create button and enter the role name.

Note: The role name we are creating here should be the same as the one we mentioned in the attribute of the role we created at the BTP level.

Creating a reference

The next step is to create a reference which defines what condition we are implementing via this access policy. Select the Create button.

Enter the reference name and description for the reference. In the condition we are asked to select the type of artifact (integration flow, integration package, script collection, etc.) for which this access policy applies.

For testing, let’s select the condition type as Integration Flow.

The next step is to choose the attribute, either ID or Name. 

Let’s select Name for our scenario.

We can see that we have two radio buttons, Equals and Matches.

  • If you choose the operator “equals”, you must specify the exact name of the artifact as value.
  • If you choose the operator “matches”, you have to enter a valid Java Regular Expression.

Let’s choose Equals and enter the condition value as ZTesting.

This indicates that the integration flow named ZTesting will be restricted for the user to whom the role we created is not assigned. Let’s see that in the next steps.

Case 1: Restricting access to an integration flow

Let us create a dummy integration flow with the name ZTesting. As we have created a role with a reference saying that access to integration flow ZTesting is restricted, once the artifact is deployed, the user with the role assigned can only do the following operations:

  • Edit the artifact
  • Deploy the artifact
  • See the trace data
  • Delete the artifact
  • Download / export the artifact

If we try to do the above-mentioned activities with a user who doesn’t have the role assigned, the following will be shown as an error.

Editing the artifact

Deploying the artifact

Viewing the trace data

Deleting the artifact

Downloading / exporting the artifact

Case 2: Restricting access to an integration package

Now let us create a reference for restricting access to a particular package. Go to the same role which we created earlier and press the Create button.

Now, provide the reference name and description. Since we are restricting access to a specific package, select the condition type as Integration Package and give the value as ZAccess_Policy as shown below, then select Create.

Let us create a dummy integration package with the name ZAccess_Policy. Once the package is created, the user with the role assigned can only do the following operations:

  • Editing the package
    1. Adding an artifact to the package
    2. Deleting an artifact from the package
    3. Exporting / downloading an artifact from the package
  • Deleting the package
  • Exporting the package

If we try to do the above-mentioned activities with a user who doesn’t have the role assigned, the following will be shown as an error.

Addition of artifact

Deletion of artifact

Exporting / downloading an artifact from package

Deleting the package

Exporting the package

Other cases

It is important to note that access policies are not limited to Integration Packages or Integration Flows. The same approach can be applied to other artifacts in the tenant, such as:

  • OData API
  • REST API
  • SOAP API
  • Script Collection
  • Value Mapping
  • Message Mapping
  • Message Queue
  • Global Data Store
  • Global Variable
  • Data Type
  • Message Type

If a user does not have the required role assigned, any attempt to perform restricted actions—such as editing, deleting, or similar operations—on the above-mentioned artifacts will result in an authorization error.




Day-to-day challenges in SAP Cloud Platform Integration (CPI)

SAP Integration Suite / CPI

SAP CPI / Integration Suite

30 Advanced Interview Scenarios & Solutions

A comprehensive guide for Medium to Advanced level professionals

Architecture & Core Concepts

Scenario 1: You need to integrate an SAP system with a third-party application, but the third-party application frequently goes offline for maintenance. How do you design the IFlow to ensure zero message loss?

Solution: To ensure zero message loss (guaranteed delivery), I would implement an asynchronous decoupling pattern using JMS (Java Message Service) queues. The sender would send the message to CPI, which immediately writes it to a JMS queue and returns a 200 OK to the sender. A second Integration Process would read from this JMS queue and attempt to send the payload to the third-party receiver. If the receiver is offline, the JMS adapter's built-in retry mechanism will automatically attempt redelivery based on the configured exponential backoff parameters until the system is back online.

Scenario 2: Your integration flow processes large files (e.g., 500 MB) from an SFTP server. The flow frequently crashes with OutOfMemory (OOM) errors. How do you resolve this?

Solution: To handle large payloads, we must avoid loading the entire file into memory (DOM parsing). I would use the General Splitter or Iterating Splitter with 'Streaming' enabled to process the file in chunks. Alternatively, if the file is a large CSV, I would read it line-by-line using the Iterating Splitter. Additionally, I would ensure that no 'Trace' mode is turned on in production and avoid using Content Modifiers to store the entire payload as an exchange property, as properties reside in memory.

Scenario 3: You have a requirement where an incoming payload contains orders for multiple different regions (US, EMEA, APAC). Each region must be processed differently and sent to a different target system. How do you architect this?

Solution: I would use a Multicast step (or Splitter if the regions are in a list) combined with a ProcessDirect adapter. First, I would route the message based on the region node using an XPath expression in a Router. Then, instead of building massive, complex logic in a single IFlow, I would send the region-specific payload to a ProcessDirect receiver. Different child IFlows would consume these ProcessDirect calls, allowing modularization, independent deployment, and easier maintenance.

Scenario 4: Two independent Integration Flows (IFlow A and IFlow B) need to share a small piece of reference data, such as a daily exchange rate or a token. How can you achieve this state sharing?

Solution: CPI is generally stateless across different IFlows. To share state, we can use Global Variables (Write Variables / Read Variables). IFlow A can fetch the token or exchange rate and write it to a Global Variable. IFlow B can then read this Global Variable. Alternatively, if the data is slightly larger, a Data Store operation could be used. Both mechanisms persist data in the tenant's database, making it accessible across all IFlows in the same tenant.

Scenario 5: You need to implement an 'Exactly Once' (Idempotent) scenario. The sender system might send the same invoice twice due to network glitches, but the receiver ERP system cannot handle duplicate invoices. How do you handle this in CPI?

Solution: I would use the Idempotent Process Call pattern in CPI. I would extract a unique identifier from the incoming payload (e.g., InvoiceNumber) and pass it to the Idempotent Process Call step. CPI will store this ID in its database. If a subsequent message arrives with the same InvoiceNumber, CPI will detect the duplicate. I can configure it to either skip the processing entirely or return the cached response of the original execution to the sender.

Scenario 6: What is the difference between a Content Enricher and a Poll Enricher, and when would you use each?

Solution: A Content Enricher is used to make a synchronous call to an external system (via HTTP, OData, SOAP) in the middle of an IFlow to fetch additional data and merge it with the original payload. A Poll Enricher, on the other hand, is specifically used to poll a file from an SFTP server in the middle of a process. I would use the Content Enricher to fetch a customer name from an OData API using a Customer ID, and the Poll Enricher if I need to read a static lookup CSV file located on an SFTP server during execution.

Error Handling & Reliability

Scenario 7: When an error occurs in an IFlow, you need to send an email alert containing the original incoming payload, not the payload at the time of failure. How do you implement this?

Solution: In CPI, payloads change as they pass through mapping and modifier steps. To preserve the original payload for error handling, I would save the incoming body as an Exchange Property in the very first step (Content Modifier). Then, I would add an Exception Subprocess to the IFlow. Inside the Exception Subprocess, I would use a Content Modifier to replace the current body (which might be in a failed, half-mapped state) with the original payload saved in the property, and then route it to the Mail adapter.

Scenario 8: A receiver system throws a temporary HTTP 503 (Service Unavailable) error. You want your IFlow to retry up to 3 times before failing completely. How do you design this?

Solution: For synchronous HTTP calls without JMS, I would use a Loop Process Call configured to iterate up to 3 times. Inside the loop, I would wrap the Request-Reply step in a Local Integration Process with an Exception Subprocess. If a 503 occurs, the Exception Subprocess catches it, increments a retry counter, and adds a Delay step (via Groovy). If the call succeeds, a flag is set to exit the loop. If it fails after 3 times, an error is formally thrown.

Scenario 9: How do you differentiate between business exceptions (e.g., invalid data) and technical exceptions (e.g., connection timeout) in CPI's Exception Subprocess?

Solution: Inside the Exception Subprocess, I would use a Groovy script to inspect the CamelExceptionCaught property. Technical errors (like java.net.ConnectException or HTTP 401) can be identified by their exception class or HTTP status codes. Business errors often return a 400 Bad Request or a specific XML/JSON error payload from the target. I would route the message based on these conditions: technical errors might trigger an alert to the IT team, while business errors might trigger an email back to the data sender.

Scenario 10: You have an IFlow using a JMS adapter for retries. However, you notice that a 'Poison Message' (a message that always fails due to invalid data format) is endlessly retrying, clogging the JMS queue. How do you handle poison messages?

Solution: I would configure a Dead Letter Queue (DLQ) mechanism. In the JMS adapter settings, there is a parameter for 'Maximum Retries' or 'Exponential Backoff' limits. Once the retry limit is reached, the message should be moved to a DLQ or an error queue. Alternatively, in an Exception Subprocess, I can check if the failure is a parsing/mapping error (which will never succeed on retry) and intentionally end the process gracefully (or send to an error data store) instead of throwing an unhandled exception back to the JMS queue.

Advanced Groovy Scripting & Data Transformation

Scenario 11: You need to parse a complex JSON structure in Groovy, modify a specific nested field, and output it back as JSON. Which Groovy libraries do you use?

Solution: I would use Groovy's built-in JsonSlurper to parse the incoming JSON string into a Groovy Map/List object. Then, I would traverse the object (e.g., parsedJson.header.details[0].status = 'Completed') to modify the necessary fields. Finally, I would use JsonOutput.toJson(parsedJson) to convert the modified object back into a JSON string and set it as the message body. This avoids using heavy standard converters for simple field updates.

Scenario 12: An external API requires a dynamic header X-Signature which is an HMAC-SHA256 hash of the payload and a secret key. How do you generate this in CPI?

Solution: I would use a Groovy script to generate the HMAC-SHA256 hash. First, I would retrieve the secret key from the CPI Keystore or Secure Parameters using the ITApiFactory. Then, I would read the message body as a String, and use Java's javax.crypto.Mac and javax.crypto.spec.SecretKeySpec classes to generate the hash. I would encode the resulting byte array using Base64 (java.util.Base64), and finally set it as a message header (message.setHeader('X-Signature', hashValue)).

Scenario 13: Your standard message mapping fails because the incoming XML has an unpredictable namespace prefix, or sometimes lacks a namespace entirely. How do you make the mapping robust?

Solution: Standard SAP CPI message mapping is strictly bound to the namespaces defined in the XSD. To make it resilient, I would place a Groovy script or an XSLT mapping before the Message Mapping step to strip or normalize the namespaces. Using a simple XSLT script with local-name() can completely remove namespaces from the incoming XML, allowing the Message Mapping to rely solely on the structure, or I can use an XML Modifier step to remove namespaces.

Scenario 14: You need to fetch a confidential API Key (e.g., 'Stripe-API-Key') securely without hardcoding it in a Content Modifier. How is this done?

Solution: I would store the API key as a 'Secure Parameter' in the CPI Security Material. In the IFlow, I would use a Groovy script to access the Secure Store service. I would use the ITApiFactory.getApi(SecureStoreService.class, null) method, retrieve the credential object by its alias name, and extract the password/key. Then, I can set it as an HTTP header directly in the script for the subsequent outbound call.

Scenario 15: How do you read an attachment (e.g., a PDF file) sent via a SOAP request and send it to an SFTP server?

Solution: In a Groovy script, I would access the attachments using message.getAttachments(). I would iterate through the map of attachments, get the DataHandler or InputStream of the PDF, and set it as the main message body (message.setBody(attachment.getContent())). I would also capture the attachment's filename and set it as the CamelFileName header. Then, the message can be routed to the SFTP receiver adapter which will write the body as a file.

Scenario 16: You need to perform a dynamic lookup based on a target system name at runtime. The routing rules are maintained in a Value Mapping. How do you access Value Mappings inside Groovy?

Solution: I can access Value Mappings programmatically in Groovy using the ITApiFactory. I would get the ValueMappingApi, then call getMappedValue(sourceAgency, sourceIdentifier, sourceValue, targetAgency, targetIdentifier). This allows me to pass a dynamic source value from the payload and retrieve the target system name, which I can then set in a header to dynamically configure the ProcessDirect or HTTP adapter URL.

Security, Connectivity & Adapters

Scenario 17: You are connecting to an on-premise SAP S/4HANA system using the Cloud Connector. The S/4HANA system requires 'Principal Propagation' so that the original cloud user's identity is maintained. How do you configure this?

Solution: First, the SAP Cloud Connector (SCC) must be configured for Principal Propagation (trusting the BTP subaccount and mapping cloud users to ABAP users via short-lived certificates). In the CPI IFlow, I would use an HTTP or OData adapter, set the Proxy Type to 'On-Premise' to route traffic through the SCC. Then, I would set the Authentication type to 'Principal Propagation'. CPI will pass the user context (from the inbound JWT token) to the SCC, which forwards it to S/4HANA.

Scenario 18: A third-party webhook pushes JSON data to your CPI HTTP endpoint. How do you secure this inbound endpoint using OAuth 2.0?

Solution: I would configure the inbound HTTP adapter's Authorization to 'Role Based' (e.g., ESBMessaging.send). In the SAP BTP Cockpit, I would create a Service Instance of the Process Integration Runtime service with the plan 'integration-flow'. I would then create a Service Key for this instance. This Service Key generates a Client ID, Client Secret, and a Token URL. The third-party system must first call the Token URL to get a Bearer JWT, and then pass that token in the Authorization header to call the CPI endpoint.

Scenario 19: You are extracting delta employee records from SuccessFactors. How do you configure the SuccessFactors adapter to ensure it only pulls records modified since the last successful run?

Solution: I would use the SuccessFactors (OData or SOAP Compound Employee) adapter. For OData, I would use the $filter query parameter on the lastModifiedDateTime field. However, to maintain the delta state across runs, I would utilize CPI's built-in 'Data Store / Variables' or simply use the built-in 'Query Options' in the adapter where I can define a dynamic time-based filter using ${date:now...} or standard Delta Sync features available in the SuccessFactors OData V2 adapter, which automatically manages the watermark.

Scenario 20: The target system requires an OAuth2.0 'Authorization Code' grant type, which involves user interaction. Can CPI handle this natively, and if not, what is the workaround?

Solution: CPI is a middleware designed for system-to-system integration, so it natively supports the 'Client Credentials' grant type via the OAuth2 Credentials artifact. It cannot handle the 'Authorization Code' grant (which requires a browser redirect for user login). To work around this, a separate application or manual process must generate the initial Access Token and Refresh Token. CPI can then securely store the Refresh Token and use a Groovy script to call the token endpoint to get a new Access Token whenever the current one expires.

Scenario 21: You need to send an encrypted file to a bank using PGP. What artifacts do you need to configure in CPI?

Solution: I need the Bank's PGP Public Key. I would upload this Public Key into the CPI PGP Public Key Ring using the Keystore monitor. In the IFlow, I would use the PGP Encryptor step. In the step configuration, I would specify the encryption algorithm, the signer (if signing is required, which needs our Private Key), and the Public Key alias of the bank to encrypt the payload before routing it to the SFTP receiver.

Scenario 22: You are making an HTTP call to a REST API. The API responds with a 404 Not Found or 400 Bad Request. By default, the CPI HTTP adapter throws an exception and stops the flow. How do you capture the HTTP body of the error response?

Solution: In the HTTP receiver adapter, there is a setting called 'Throw Exception on REST Error'. I must uncheck this box. When unchecked, CPI will not trigger an Exception Subprocess for 4xx or 5xx codes. Instead, it will pass the HTTP status code (in CamelHttpResponseCode) and the error response body to the next step in the pipeline. I can then use a Router step to check the status code and handle the error payload gracefully.

Advanced Patterns & Optimization

Scenario 23: You need to aggregate daily sales files arriving independently via SFTP over 24 hours, and send one combined file at midnight. How do you design this?

Solution: I would use the Aggregator step. The incoming messages would be read via a sender adapter. The Aggregator would be configured with a Correlation Expression (e.g., a constant or date string like 'Sales-yyyy-MM-dd') so all files that day group together. I would set the Aggregation Strategy (e.g., combine XML nodes). For the completion condition, I would use a Timeout (e.g., 24 hours) or a specific time-based trigger using a secondary completion IFlow with a Data Store.

Scenario 24: You have an IFlow that uses a Request-Reply to fetch a token, then another Request-Reply to call an API. The second call fails because standard Camel headers from the first call are interfering. How do you fix this?

Solution: This is a common issue where HTTP headers (like Authorization, CamelHttpUri, or CamelHttpResponseCode) from the first call persist and interfere with the second call. To resolve this, I would place a Content Modifier or a Filter step immediately after the first Request-Reply and explicitly delete all CamelHttp* headers and any other specific headers that are no longer needed before constructing the payload and headers for the second API call.

Scenario 25: You are migrating an SAP PI/PO UDF (User Defined Function) that connects to a database to perform a lookup inside a Message Mapping. How do you handle this in CPI?

Solution: Direct JDBC lookups inside Message Mappings (via Groovy UDFs) are highly discouraged in CPI due to performance and connection pool limitations. Instead, I would redesign the flow. I would extract the keys needed for lookup from the payload, use a Content Enricher with a JDBC adapter to fetch the lookup data from the database before the mapping step, and merge it with the source payload. Then, the Message Mapping can simply map the merged XML without executing any remote calls.

Scenario 26: You have a requirement to dynamically route a message to one of 50 different target URLs based on a company code. Using a Router with 50 branches is unmanageable. What is the better approach?

Solution: I would use Dynamic Routing. First, I would maintain a Value Mapping or a custom Groovy script/lookup table that maps the Company Code to a specific Target URL. In the IFlow, I would read the company code, perform the lookup, and store the resulting URL in an Exchange Property (e.g., Target_URL). In the HTTP receiver adapter, I would configure the Address field dynamically using ${property.Target_URL}, entirely eliminating the need for a Router step.

Scenario 27: The OData V2 adapter is fetching 100,000 records, which times out. How do you optimize this extraction?

Solution: I would implement pagination (chunking) using the OData adapter's built-in 'Process in Pages' feature. I would configure the 'Page Size' (e.g., 1000 or 5000 records per page). The adapter will then execute multiple backend calls sequentially, passing each chunk into the IFlow as a separate message. To prevent the IFlow from being overloaded, I can combine this with a ProcessDirect call to a sub-flow that processes each page asynchronously.

Scenario 28: A client requires CORS (Cross-Origin Resource Sharing) to be enabled on a CPI HTTPS endpoint so their web application can call it directly from a browser. How is this achieved?

Solution: CPI HTTPS endpoints do not support CORS preflight (OPTIONS) requests natively out-of-the-box. To handle this, I would expose the CPI IFlow through SAP API Management (APIM). In APIM, I would create an API Proxy pointing to the CPI endpoint and attach a standard CORS Policy to the proxy. The policy will handle the OPTIONS requests and inject the required Access-Control-Allow-Origin headers, keeping the CPI IFlow clean and secure.

Scenario 29: You need to zip multiple attachments from an incoming email and send them as a single .zip file to an SFTP server. How do you implement this?

Solution: I would use a Groovy script. I would read the message.getAttachments() collection. I would create a ByteArrayOutputStream and wrap it in a ZipOutputStream. I would iterate through the attachments, create a ZipEntry for each attachment using its filename, and write the attachment's payload (bytes) into the zip stream. Finally, I would close the stream and set the resulting byte array as the main message body, which is then routed to the SFTP adapter.

Scenario 30: You have an XSLT mapping, but you also need to set a Camel exchange property dynamically based on the XML content. Can you do this inside XSLT?

Solution: Yes, in CPI's XSLT mapping, you can interact with Camel exchange properties and headers by declaring the specific Camel namespace. You define xmlns:cpi="http://sap.com/it/" in the stylesheet. Then, you can use CPI-specific extension functions like or cpi:setHeader() directly within the XSLT logic, allowing dynamic variables based on the transformation logic.

October 23, 2026

Sap-Cpi-Interview-Questions


Preparing for an SAP integration interview? Here are 50 questions and answers on SAP Cloud Integration (formerly SAP CPI / Cloud Platform Integration), grouped from basic to advanced. Bookmark it and revise before your next interview.

Basic SAP Cloud Integration Questions

1. What is SAP CPI?

SAP CPI is the common name for SAP Cloud Integration, the core integration capability of SAP Integration Suite. It connects cloud and on-premise applications, SAP and non-SAP, with data transformation, routing and security built in.

2. Which integration patterns does it support?

Content-Based Routing, Splitter/Aggregator, Content Enricher, Publish-Subscribe, request-reply, orchestration and more. Message mapping is a transformation technique rather than a pattern. For example, Content-Based Routing sends a message to different receivers depending on its content.

3. What are adapters?

Adapters connect an iFlow to external systems over a specific protocol or technology, such as HTTP, SOAP, SFTP, IDoc, OData (V2/V4), Mail, JDBC, AS2/AS4, AMQP, Kafka and SuccessFactors. They handle protocol and format differences so the iFlow focuses on business logic.

4. What are the basic components of an iFlow?

A sender (channel and adapter), a receiver (channel and adapter), and processing steps in between: mappings, Content Modifier, routers, scripts and so on.

5. Which protocols are supported?

HTTP/HTTPS, SOAP, REST/OData, SFTP/FTP, AMQP, JMS, Kafka, Mail (SMTP/IMAP/POP3), AS2/AS4, RFC and more, depending on the adapter. Note that WebSocket is available through the dedicated adapter, not as a generic transport.

6. What is an iFlow?

An integration flow is the main design-time artifact. It defines how a message travels from sender to receiver and how it is processed on the way, modelled visually in BPMN-style notation in the web designer.

7. What is Message Mapping?

A graphical mapping tool that converts a source structure to a target structure using functions such as field mapping, value mapping and custom functions. Use it for most structure-to-structure transformations.

8. What does the Content Modifier do?

It sets or changes message headers, exchange properties and the message body. Typical uses are setting a routing header, storing a value for later use or building a request payload.

9. What is the Data Store?

A tenant-level persistence area where messages can be written, read, selected or deleted using Data Store Operations. It is used for retries, async decoupling and de-duplication. Entries have a retention period, so it is not permanent storage.

10. Which message exchange patterns are supported?

Synchronous (request-reply, the caller waits for the response) and asynchronous (fire-and-forget, with delivery often guaranteed via JMS or the Data Store).

11. What is an Exception Subprocess?

A subprocess inside an iFlow or local integration process that runs when an error occurs. You can use it to log, send an alert email, store the failed payload or return a custom error response.

12. What is a Timer (Start) event?

A start event that triggers the iFlow once or on a schedule (every n seconds, daily, weekly, cron-style). It is used for batch jobs and scheduled data sync.

13. What are Security Artifacts?

Deployable artifacts that hold credentials and keys: User Credentials, OAuth2 Credentials, Secure Parameters, Keystore entries (certificates and keys), PGP keyrings and known hosts for SFTP.

14. Which transformation techniques are available?

Graphical Message Mapping, XSLT mapping, Groovy and JavaScript scripting, and converters such as JSON-to-XML, CSV-to-XML and EDI converters. Choose the simplest tool that meets the need.

15. What is a Splitter?

A step that breaks one message into several, for example per order line. Variants include General, Iterating and EDI splitters. It lets large bulk payloads be processed in manageable pieces.

16. What is an Aggregator?

A step that combines several related messages into one based on a correlation expression and a completion condition. It is stateful and works across messages.

Intermediate SAP Cloud Integration Questions

17. Why is Groovy scripting used?

For logic that standard steps cannot do: complex parsing, dynamic routing values, custom logging and calls to the Script API (message body, headers, properties). Keep scripts small and testable.

18. How is exception handling implemented?

Through Exception Subprocesses, Groovy try/catch blocks, custom error responses and alerting. Combine these with retry settings on the sender side and the Message Monitor.

19. What is the JMS adapter used for?

For reliable asynchronous messaging using queues in the tenant's built-in messaging service. It decouples sender and receiver, supports retries and dead-letter handling. It requires the appropriate license and messaging provisioning, and queue limits apply.

20. How is message persistence handled?

Mainly with JMS queues (preferred for reliable async delivery) and the Data Store or Write Variables for state. Enable retry and persistence so messages survive runtime errors and restarts.

21. What is the ProcessDirect adapter?

An adapter for direct, in-memory calls between iFlows on the same tenant. It enables reusable, modular iFlows without going through an external HTTP call.

22. What is Principal Propagation?

Passing the identity of the original user through to the backend system, so authorizations are checked for that user. In SAP scenarios it is commonly used with SAP Cloud Connector for on-premise targets.

23. How is OAuth2 implemented?

Configure OAuth2 credentials (client credentials, authorization code, SAML bearer and others) as a security artifact. The adapter obtains and caches access tokens automatically.

24. How is data encrypted?

In transit using HTTPS/TLS with certificates in the Keystore. For payloads, use the PKCS#7/CMS or PGP Encryptor steps (and the matching Decryptor steps), plus digital signatures where required.

25. How do you test connectivity?

Use Monitor > Manage Security > Connectivity Tests to check TLS, SSH, SMTP, IMAP, AS2, Kafka and other connections before deploying.

26. What monitoring tools exist?

Monitor Message Processing, Manage Integration Content, Manage Security Material, Manage Stores (Data Stores, Variables, Message Queues), Access Logs and Connectivity Tests, plus alert integration with SAP Cloud ALM.

27. What is the Content Enricher?

A step that calls another source (via Request-Reply, for example) and merges that response into the original message, either by Combine or Enrich strategy using path and key elements.

28. How is Content-Based Routing implemented?

With the Router step, which evaluates XPath or non-XML expressions on the payload, headers or properties. Use a default route for unmatched messages.

29. What is XSLT mapping used for?

For complex XML transformations that the graphical mapper cannot express easily, using an uploaded XSLT stylesheet.

30. What is Poll Enrich?

A step that fetches a message from a source such as SFTP or Mail during flow execution and merges it with the current message. It reads on demand rather than on a schedule, so it differs from the Timer start event.

Advanced SAP Cloud Integration Questions

31. How is the OData adapter used?

As a receiver adapter to call OData V2 or V4 services (S/4HANA, SuccessFactors) with query, create, update and delete operations, and with the Operations Modeler helping to build queries. As a sender it exposes an iFlow as an OData service.

32. How is iFlow versioning managed?

Every save creates a new version, and you can view or restore earlier versions. The semantic version number is for your own tracking. Combine this with transport management for controlled releases.

33. How do you use dynamic expressions in the Content Modifier?

With Camel Simple Expression syntax, for example ${header.OrderID}, ${property.Region} and ${date:now:yyyy-MM-dd}, plus externalised parameters written as {{ParamName}}.

34. What is Value Mapping?

A lookup that converts values between systems or agencies, such as country codes or unit codes. It is maintained as a Value Mapping artifact and used in mappings through the valueMap function.

35. How does it integrate with API Management?

Expose iFlows through API Management (also part of Integration Suite) as managed APIs, adding policies such as spike arrest, quotas, OAuth verification and caching, with analytics and developer portal publication.

36. How do you handle a sync-to-async bridge?

Receive the call synchronously, write the message to a JMS queue (or Data Store), return an immediate acknowledgment and process asynchronously in a second flow. Where a response is needed later, use polling or callbacks.

37. What is Parallel Multicast?

A step that sends the same message down several branches concurrently, which reduces total run time when branches are independent. Use Sequential Multicast when order or shared state matters.

38. How is correlation handled?

By using identifying values such as business keys or headers. Aggregators correlate on an expression, and Splitters carry correlation info for downstream processing. Sender-side message IDs help trace messages in monitoring.

39. How do you debug an iFlow?

Set the log level to Trace (time limited) to inspect payloads and headers after each step in message monitoring. Use Info or Debug levels in production, MPL custom headers for searchable values, and the Groovy script editor for quick tests.

40. How do you convert JSON to XML?

Use the JSON to XML Converter step (and XML to JSON for the reverse), optionally adding a root element and namespace mapping.

41. How do you design modular integrations?

Use Local Integration Processes within one iFlow and ProcessDirect between iFlows, plus shared script collections and externalised parameters. Keep one concern per iFlow.

42. How is sensitive data handled securely?

Store secrets in User Credentials, OAuth2 Credentials or Secure Parameter artifacts, never in iFlow properties or scripts, and keep certificates and keys in the Keystore. Avoid logging sensitive payloads.

43. How do you use Groovy for error handling?

Wrap logic in try/catch, read the exception via exchange.getProperty("CamelExceptionCaught"), write details to the message processing log and set a meaningful HTTP status and response body.

44. How can advanced content-based routing be achieved?

Set a routing value with a script or XPath and let the Router decide on it, or use a Content Modifier with a lookup (Value Mapping or a Data Store) so routing rules live in configuration rather than code.

45. How are custom libraries used in Groovy?

Create a Script Collection artifact containing shared scripts, then reference it from the iFlows that need it. External JARs can be added as resources where supported.

46. How do you migrate iFlows between environments?

Export and import the integration package manually, or automate it with Cloud Transport Management Service (or CTS+ / Solution Manager in older landscapes). Use externalised parameters so only configuration changes per tenant.

47. How do you encrypt a payload?

Use the PGP Encryptor or PKCS#7/CMS Encryptor step with the receiver's public key, and add a signer step if integrity and non-repudiation are required.

48. How do you handle large messages?

Prefer streaming and Splitters (with streaming enabled) to process in chunks, avoid unnecessary body reads in scripts, use the chunking options of OData and SFTP adapters and watch the runtime's memory limits.

49. How do you create reusable iFlows?

Extract common logic into a dedicated iFlow, call it through ProcessDirect, share scripts and mappings via script collections or package-level artifacts and use externalised parameters for settings.

50. How can you expose an iFlow as an API?

Use an HTTPS (or SOAP) sender adapter, which gives the iFlow an endpoint on the tenant runtime. Then publish it via API Management to add policies, rate limiting, monitoring and a developer portal.

Tip: In interviews, back up each answer with a real scenario you have built. Examples help far more than definitions. Good luck!