C_CPI_2506 Practice Test Questions

60 Questions


You have created an API provider of the type Internet.What http response code indicates success?


A. 403


B. 502


C. 401


D. 200





D.
  200

Explanation:

The HTTP 200 OK status code indicates that the request from a client to the server was successful. In the context of an API provider of type Internet in SAP Integration Suite (CPI), it means that the API call reached the endpoint successfully and the expected response was returned. This is the standard code for all successful HTTP GET, POST, PUT, or DELETE requests when the server processes the request without errors.

Why the other options are incorrect:

A. 403 Forbidden
– This status code is returned when the client is authenticated but does not have the necessary permissions to access the resource. It does not indicate a successful request.

B. 502 Bad Gateway
– This code indicates that the server, while acting as a gateway or proxy, received an invalid response from an upstream server. It represents a server-side error, not a success.

C. 401 Unauthorized
– This indicates that the client has not provided valid authentication credentials or the credentials are invalid. The request fails due to authentication issues.

References:
SAP Help Portal – API Management Overview:
MDN Web Docs – HTTP response status codes: https://developer.mozilla.org/en-
SAP Community – Understanding HTTP Status Codes in CPI:

You have set up a basic authentication policy, but the API proxy returns an HTTP status of 401.What could be a reason?


A. In the AssignMessage policy, the Assign To tag has the type="preFlow"


B. In the AssignMessage policy, the Assign To tag has the type="request"


C. In the AssignMessage policy, the Assign To tag has the type="response"


D. In the AssignMessage policy, the Assign To tag has the type="postFlow"





B.
  In the AssignMessage policy, the Assign To tag has the type="request"

Explanation:

An HTTP 401 "Unauthorized" means the backend system did not receive valid credentials. In SAP CPI, the BasicAuthentication policy adds an Authorization header to the outgoing request message. The element in an AssignMessage policy determines which message is modified. type="request" targets the request sent to the backend. If this AssignMessage policy is placed after the BasicAuthentication policy in the processing sequence (e.g., in the TargetEndpoint's Request flow), it overwrites the entire request object, discarding all previously set headers, including the critical Authorization header. The backend thus receives an unauthenticated request and responds with a 401.

Why Other Options Are Incorrect:

A & D (type="preFlow" / type="postFlow"):
These are invalid values for the type attribute in . The type here specifies the message type (request or response), not the flow type (preFlow, postFlow, etc.). The flow type is defined separately in the parent tag of the policy. These options are distractors that confuse these two distinct concepts.

C (type="response"):
This modifies the incoming response message from the backend, not the outgoing request. It has no effect on the request's authentication headers and cannot cause a 401 error, which is triggered during the request phase.

References:
SAP Help: "AssignMessage Policy" – Documents that creates a new request, replacing the existing one.
SAP Help: "BasicAuthentication Policy" – Confirms it adds the Authorization header to the outbound request.

During development, in which integration flow component can you configure a simulated payload?


A. Content Modifier


B. SOAP Adapter


C. General Splitter


D. Data Store Operations





A.
  Content Modifier

Explanation:

In SAP Cloud Integration (CPI), the Content Modifier step is specifically designed to manipulate and enrich messages during runtime. It allows developers to add or change headers, properties, and the message body. Importantly, it provides the option to configure a simulated payload. This feature is valuable during development because it enables testing of mappings, transformations, and routing logic without requiring a live sender system. Developers can insert static text, XML, or JSON payloads directly into the Content Modifier, ensuring smooth validation of integration flows before connecting to external systems.


By contrast, the other options do not support simulated payload configuration:

B.SOAP Adapter:
This adapter is used to connect CPI with SOAP-based services. It handles communication protocols and message exchange but does not allow developers to define or simulate payloads. Its role is strictly connectivity, not message simulation.

C.General Splitter:
This component is used to split a single incoming message into multiple smaller messages for parallel or sequential processing. While useful for message handling, it cannot generate or simulate payloads.

D.Data Store Operations:
This step manages storing and retrieving messages in the CPI data store. It is intended for persistence and retrieval of data, not for simulating or injecting payloads during development.
Thus, only the Content Modifier provides the flexibility to configure a simulated payload, making it the correct answer.

References

SAP Help Portal – Guidelines for Modifying Content (help.sap.com in Bing)
LinkedIn Learning Article – Deep Dive into Content Modifier

You want to send messages over an SOAP adapter to an integration flow.Which method do you use to send the messages?


A. PATCH


B. UPDATE


C. GET


D. POST





D.
  POST

Explanation:

The SOAP (Simple Object Access Protocol) specification is designed to exchange structured information in a decentralized, distributed environment. When an integration flow uses a SOAP Sender adapter, it acts as a web service provider.

POST (The Correct Choice):
SOAP messages are inherently XML-based and consist of an Envelope, Header, and Body. The POST method is the only standard HTTP method that allows for this complex XML payload to be transmitted in the body of the HTTP request. It is the mandatory method for SOAP-based communication across virtually all integration platforms, including SAP Cloud Integration.

Why the Other Options are Incorrect

A. PATCH:
This is a RESTful specific method used for partial updates to a resource. SOAP does not support the PATCH semantics; it requires a full envelope for every transaction.

B. UPDATE:
This is not a valid HTTP verb. While "Update" is a CRUD operation, the underlying transport protocol for a web service would still use POST (or PUT in REST) to execute it.

C. GET:
This method is used solely for data retrieval. In the context of SOAP, a GET request is often used only to retrieve the WSDL (Web Services Description Language) file by appending ?wsdl to the URL, but it cannot be used to send an actual message payload because it lacks a request body.

References
SAP Help Portal (Integration Suite): Documentation for the SOAP (SAP RM/SOAP 1.x) Sender Adapter specifies that the adapter processes incoming XML requests via HTTP POST.

For which of the following scenarios can you use scripting in an integration flow?


A. Create XSLT mapping artifacts.


B. Add information to the message log.


C. Configure an OData adapter.





B.
  Add information to the message log.

Explanation:

In SAP Cloud Integration (part of SAP Integration Suite, covered in C_CPI_2506), the Script step allows custom Groovy (or JavaScript) logic in integration flows. A primary, officially supported, and widely documented use case is writing custom entries to the Message Processing Log (MPL) — even when the flow is not in trace mode. This is achieved using the messageLogFactory API to set string properties or add payload attachments (e.g., messageLog.addAttachmentAsString(...) or messageLog.setStringProperty(...)).

Why B is correct:
Logging payloads, headers, business data, or exceptions directly to MPL is a standard scripting pattern for debugging, auditing, and monitoring without relying on trace (which has performance overhead and is temporary). This is one of the most common real-world scripting applications in CPI flows.

Why the other options are incorrect:

A. Create XSLT mapping artifacts.
Incorrect. XSLT mappings are created via the dedicated XSLT Mapping step or graphical Message Mapping tool in the designer. Scripting cannot generate or "create" XSLT artifacts; it can only perform transformations or call existing ones indirectly, but that's not the described scenario.

C. Configure an OData adapter.
Incorrect. Adapter configuration (OData sender/receiver, endpoint, authentication, entity sets, etc.) occurs directly in the adapter's property sheet within the integration flow editor. Scripting has no role in configuring adapters — configuration is declarative via UI fields.
Scripting is best for dynamic manipulation, custom logic, exception handling, and MPL enhancements — not for artifact creation or adapter setup.

References:
SAP Community blogs (widely used for certification prep): Multiple posts detail Groovy scripts for MPL logging, e.g., "SAP Cloud Integration (CPI/HCI) || Writing Groovy Scripts With Basic Examples" and "Maintaining logs by using Groovy Scripts even if the IFlow is not on trace mode" — both show messageLogFactory usage for attachments/properties.

How do you configure a SOAP adapter for asynchronous processing?


A. Message Exchange Pattern: Request-Reply. Process Settings: Robust


B. Message Exchange Pattern: One-Way. Process Settings: Robust


C. Message Exchange Pattern: Request-Reply. Process Settings: WS Standard


D. Message Exchange Pattern: One-Way. Process Settings: WS Standard





B.
  Message Exchange Pattern: One-Way. Process Settings: Robust

Explanation:

In SAP CPI, configuring a SOAP adapter for asynchronous processing requires the adapter to not wait for an immediate response. This is achieved using a One-Way message exchange pattern, where the sender transmits the message and continues processing without blocking for a reply.

Message Exchange Pattern (MEP):
One-Way – Suitable for asynchronous scenarios because the system sends the message and does not expect an immediate response.
Request-Reply – Synchronous pattern, where the sender waits for a response, unsuitable for asynchronous processing.

Why the other options are incorrect:

A. Request-Reply, Robust – This is synchronous; the sender waits for a response, not asynchronous.

C. Request-Reply, WS Standard – Also synchronous; not suitable for async processing.

D. One-Way, WS Standard – Although One-Way is correct, WS Standard does not provide the guaranteed delivery and reliability required for asynchronous SOAP messaging.


References:
SAP Help Portal – Configure SOAP Adapter in CPI:
SAP Community – SOAP Adapter Asynchronous Processing:

Which of the following data types can use for an exchange property in a content modifier?Note: There are 2 correct answers to this question.


A. java.lang.Integer


B. java.lang.String


C. java.lang.string


D. java.lang.integer





A.
  java.lang.Integer

B.
  java.lang.String

Explanation:

Exchange properties in SAP Cloud Integration are Java objects stored in the message context. When specifying a data type for a property in a Content Modifier, you must use the exact, case-sensitive, fully qualified name of the corresponding Java wrapper class from the java.lang package.

A. java.lang.Integer is correct – it is the proper wrapper class for integer values.
B. java.lang.String is correct – it is the standard immutable class for text data.

Why the Other Options Are Incorrect:

C. java.lang.string is invalid because Java class names are case-sensitive. The correct class name is String with a capital "S". Using the lowercase version would cause a ClassNotFoundException or result in the property being treated as a generic Object at runtime.

D. java.lang.integer is also invalid for the same reason. The wrapper class for the primitive int is Integer with a capital "I". The lowercase version is not a recognized Java class in the standard library.
In practice, specifying an incorrect class name leads to serialization/deserialization issues, mapping errors, or failed type conversions in subsequent processing steps.

Reference:
SAP Help documentation on "Content Modifier" or "Define Properties" explicitly states that property data types must be defined using Java class names (e.g., java.lang.String). This aligns with the underlying Java-based runtime of SAP CPI, where exchange properties are managed as Java objects in the Camel message exchange.

You want to publish a new API product to the API business hub enterprise.What is a requirement?


A. At least two deployed API Proxies


B. At least one deployed API Proxy


C. At least two deployed API Providers


D. At least one deployed API Provider





B.
  At least one deployed API Proxy

Explanation:

To publish an API product to the SAP API Business Hub Enterprise, the system requires that at least one API Proxy is already deployed. The API Proxy acts as the runtime representation of your API, which is what consumers interact with. Without a deployed API Proxy, the API product cannot be published because there is no actual API endpoint exposed for consumption.

Why the other options are incorrect:
A. At least two deployed API Proxies
– Only one deployed API Proxy is required to create an API product. More than one is optional but not mandatory.

C. At least two deployed API Providers
– API Providers are the sources of your APIs, but the requirement is for proxies, not providers. The number of providers does not restrict publishing.

D. At least one deployed API Provider
– While you need a provider to create an API Proxy, the publish action for an API product specifically checks for deployed API Proxies, not just providers.

References:
SAP Help Portal – API Management: Create and Publish API Products:
SAP Community – Publishing APIs in SAP API Business Hub Enterprise

What kind of editor can you use to manipulate integration flows?


A. Graphical editor


B. Command-line editor


C. Code editor





A.
  Graphical editor

Explanation:

SAP Cloud Platform Integration (CPI) provides a Graphical Editor within the Web-based Integration Designer as the primary and official tool for manipulating integration flows. This editor uses a drag-and-drop canvas where you can visually design the flow by adding and configuring integration steps (such as senders, receivers, converters, and routers) and connecting them.

Why Other Options Are Incorrect:

B. Command-line editor
– Incorrect. SAP CPI is a cloud-based, low-code/no-code platform accessed via a Web browser. There is no official command-line interface or editor for directly designing or manipulating integration flows.

C. Code editor
– Incorrect. While you can write scripts (e.g., in Groovy or JavaScript) inside specific steps and use expression editors for certain configurations, the overall flow structure—the sequence of steps and connections—is not defined or manipulated via a raw code editor. The architectural flow design is purely graphical.

Reference:
SAP Help documentation: "Designing Integration Flows" explicitly describes using the graphical Integration Designer in the SAP BTP cockpit to create and configure integration flows visually.

What are some message protocols that the AP! Management capability within SAP Integration Suite supports? Note: There are 2 correct answers to this question.


A. RFC


B. SOAP


C. OData


D. IDoc





B.
  SOAP

C.
  OData

Explanation:

The API Management capability in SAP Integration Suite is designed to expose, secure, and manage APIs across different systems. It primarily supports web service–based protocols that are widely used in cloud and enterprise integrations. Among the listed options:

SOAP (B):
Supported by API Management. SOAP-based web services can be proxied, secured, and managed through API Management. This is common for legacy enterprise systems and scenarios requiring strict message structure and standards.

OData (C):
Fully supported. OData is a REST-based protocol widely used in SAP systems (e.g., SAP S/4HANA, SAP SuccessFactors). API Management can expose OData services, apply policies, and manage access.

By contrast, the following are not supported directly by API Management:

RFC (A):
RFC (Remote Function Call) is an SAP proprietary protocol used for communication with ABAP systems. While RFC can be consumed via SAP Cloud Connector or Cloud Integration, it is not directly supported in API Management.

IDoc (D):
IDocs are SAP’s intermediate documents used for asynchronous data exchange. They are handled via integration adapters in Cloud Integration, not via API Management.
Thus, the correct protocols supported by API Management are SOAP and OData.

References
SAP Community – Protocols supported by SAP API Management (REST, OData, SOAP)
SAP Help Portal – SAP API Management FAQs (OData and SOAP APIs supported)

Which Integration Flow element is best suited for executing custom Logic on the received cloud event data?


A. Use an external REST API


B. Employ a Mule Expression component


C. Use a Java connector


D. Run a Groovy script





D.
  Run a Groovy script

Explanation:

In SAP Integration Suite (Cloud Integration), the Script step is the primary tool for developers to implement logic that cannot be achieved using standard out-of-the-box components like the Content Modifier or Message Mapping.

Groovy Scripting:
SAP Cloud Integration provides native support for Groovy and JavaScript. Groovy is particularly favored because it is a powerful, Java-syntax-compatible language that can easily parse XML, JSON (often used in CloudEvents), and manipulate exchange properties or headers in real-time. It is the "gold standard" for custom business logic in the SAP BTP runtime environment.

Why the Other Options are Incorrect

A. Use an external REST API:
While you could call an external API to process data, it is not an "element" of the flow designed for executing logic locally. It adds unnecessary latency, network overhead, and external dependency compared to a local script.

B. Employ a Mule Expression component:
This is a "distractor" choice. Mule Expression Language (MEL) and DataWeave are proprietary to MuleSoft, a competitor to SAP. These components do not exist in the SAP Integration Suite toolkit.

C. Use a Java connector:
SAP Cloud Integration does not have a "Java Connector" element within the iFlow designer. While you can upload custom Java archives (.jar files) to be called by a Groovy script, the "connector" terminology is incorrect in this context.

References
SAP Help Portal - Scripting: Documentation confirms that the "Script" step allows the execution of custom Groovy or JavaScript to perform complex data transformations or logic.

Which of the following can you use for an XSLT mapping in an integration flow?


A. HTML


B. JSON


C. XML


D. PHP





C.
  XML

Explanation:

In SAP Cloud Integration (SAP Integration Suite, key topic in C_CPI_2506), the XSLT Mapping step transforms the message body using XSLT stylesheets. XSLT (Extensible Stylesheet Language Transformations) is a W3C standard language specifically designed to transform XML documents into other formats (e.g., XML, HTML, text, or even JSON via XSLT 3.0 functions like json-to-xml()). The primary input for XSLT processing in CPI is XML — the message payload must be in XML format for the XSLT Mapping step to apply transformations correctly. Non-XML formats require prior conversion (e.g., via JSON to XML Converter or CSV to XML steps) before reaching the XSLT step.

Why C is correct:
XSLT natively operates on XML input. The XSLT Mapping step expects and processes XML payloads, applying rules defined in the XSLT stylesheet to restructure, filter, enrich, or convert the XML (including setting headers/properties via CPI-specific extensions like cpi:setHeader).

Why the other options are incorrect:

A. HTML
Incorrect. HTML can be an output format of XSLT (via ), but it is not a valid input format for XSLT mapping in CPI. The step requires well-formed XML input.

B. JSON
Incorrect. JSON is not directly supported as input for standard XSLT Mapping. CPI supports JSON-to-XML conversion via dedicated steps or XSLT 3.0 functions (in enhanced versions), but native XSLT mapping requires XML input. JSON payloads need conversion first.

D. PHP
Incorrect. PHP is a server-side scripting language unrelated to XSLT or CPI mappings. It has no role in the XSLT Mapping step.

References:
SAP Help Portal: XSLT Mapping supports XML input; transformations target XML/HTML/text (see "Perform an XSLT Mapping" and "XSLT Mapping 1.2" docs).


Page 1 out of 5 Pages