Courseiva

C_CPI Integration Suite Development Practice Question

An integration developer is designing an integration flow that must call an external REST API. The API requires an API key in a custom HTTP header and returns responses in JSON. The developer wants to minimize configuration effort and avoid writing scripts. Which approach is most appropriate?

⚠ Common exam trap

The trap here is reaching for a Groovy script or a protocol-specific adapter when the HTTP receiver adapter natively supports custom headers and JSON without any scripting.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Use a Request Reply step with an HTTP receiver adapter, set the custom header in a Content Modifier before the call, and configure the adapter to accept JSON.

The HTTP receiver adapter is the correct choice for REST APIs. It supports custom HTTP headers, which the Content Modifier can set before the Request Reply step, and it can handle JSON responses. This avoids scripting and uses standard integration flow steps to satisfy the API key and JSON requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Use a SOAP receiver adapter and set the API key as a SOAP header, then convert the JSON response using a JSON-to-XML converter.

    Why it's wrong here

    The external API is REST-based, not SOAP. A SOAP receiver adapter sends SOAP envelopes, which the REST API would not understand. Setting a SOAP header does not place the API key in an HTTP header. This approach mismatches the protocol and would fail to authenticate or communicate with the API.

  • ✓

    Use a Request Reply step with an HTTP receiver adapter, set the custom header in a Content Modifier before the call, and configure the adapter to accept JSON.

    Why this is correct

    The HTTP receiver adapter supports custom headers, which can be set with a Content Modifier before the Request Reply step. Configuring the adapter for JSON responses handles the payload format. This approach uses standard steps without scripting and meets the API key and JSON requirements.

  • ✗

    Use a Groovy script to build the HTTP request with the API key header and parse the JSON response, then send the result to a Process Direct step.

    Why it's wrong here

    A Groovy script can achieve the goal but violates the requirement to avoid scripting and minimize configuration effort. The HTTP receiver adapter already supports custom headers and JSON handling, so scripting is unnecessary. This approach adds complexity and maintenance overhead without benefit.

  • ✗

    Use an OData V2 receiver adapter and configure the API key as a custom query parameter in the adapter's connection settings.

    Why it's wrong here

    The OData V2 receiver adapter is designed for OData services, not arbitrary REST APIs. It does not support placing an arbitrary API key in a custom HTTP header. Using it against a non-OData REST endpoint would produce incorrect requests and likely fail authentication and response parsing.

About these practice questions

This C_CPI question is part of Courseiva's 218-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official SAP exam blueprint

This C_CPI practice question is part of Courseiva's free SAP certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C_CPI exam.