Courseiva

C_CPI Integration Suite Development Practice Question

An integration developer needs an integration flow in SAP Cloud Integration to call an external REST API that requires an OAuth 2.0 client credentials token. The token endpoint and client credentials are stored as a Security Material of type OAuth2 Client Credentials. Which step configuration correctly obtains and attaches the token to the outbound request?

⚠ Common exam trap

The trap here is manually scripting token retrieval or using Basic authentication when the HTTP receiver adapter can handle OAuth 2.0 client credentials automatically through a security material reference.

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

✓

Add a Request Reply step with the HTTP receiver channel configured to use the OAuth2 Client Credentials security material, so the adapter fetches and applies the token automatically.

The HTTP receiver adapter can consume an OAuth2 Client Credentials security material directly. During message processing it requests a token from the configured token endpoint and injects the bearer token into the Authorization header, so the developer does not need custom scripting. This is the supported and least error-prone configuration.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Add a Request Reply step with the SOAP receiver channel configured to use the OAuth2 Client Credentials security material.

    Why it's wrong here

    The SOAP receiver adapter supports different authentication options and is intended for SOAP services, not the REST API described. Using it would not correctly format the outbound HTTP request expected by a REST endpoint. The OAuth2 Client Credentials material is designed for use with the HTTP receiver adapter in this context.

  • ✗

    Add a Content Modifier that sets an Authorization header with a Basic authentication value derived from the client ID and secret.

    Why it's wrong here

    Basic authentication is a different scheme from OAuth 2.0 client credentials. Sending the client ID and secret directly as Basic credentials to the target API does not obtain or present a bearer token, so the API would reject the call. This option confuses authentication schemes and does not use the configured OAuth2 security material.

  • ✓

    Add a Request Reply step with the HTTP receiver channel configured to use the OAuth2 Client Credentials security material, so the adapter fetches and applies the token automatically.

    Why this is correct

    When an HTTP receiver channel references an OAuth2 Client Credentials security material, the adapter retrieves a token from the configured token endpoint and adds the Authorization header to the outbound request. This is the built-in mechanism and avoids custom token handling in scripts. It satisfies the requirement with minimal configuration and correct credential storage.

  • ✗

    Add a Groovy script that reads the client credentials from a Partner Directory entry, performs a POST to the token endpoint, and sets the Authorization header manually.

    Why it's wrong here

    Manually implementing token retrieval in a Groovy script duplicates functionality already provided by the HTTP adapter, increases maintenance, and risks mishandling token caching or expiry. Storing credentials in a Partner Directory entry is not the correct secure store for OAuth2 client credentials. This approach is unnecessarily complex and error-prone for the stated scenario.

About these practice questions

Courseiva writes every C_CPI question from scratch — 218 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.