C_CPI Integration Suite Development Practice Question
An integration developer is configuring a Message Mapping in SAP Cloud Integration. The target structure requires a repeating node that must appear exactly once for each distinct value of a source field, and the order of the target elements must follow the order in which the distinct values first appear in the source. Which mapping technique should the developer use?
⚠ Common exam trap
The trap here is assuming that a direct node-to-node mapping automatically deduplicates values, when it actually emits one target element per source occurrence.
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 user-defined function that returns the distinct values and apply it with a context change so the target node repeats once per returned value.
The requirement is to collapse repeated source values into distinct target entries while preserving the sequence of first occurrence. A user-defined function that collects distinct values in order, executed in a context that instantiates the repeating target node once per returned value, achieves exactly this. Direct node mappings, sorting, and fixed-value nodes each fail to satisfy both the deduplication and ordering constraints simultaneously.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a one-to-one mapping from the source node to the target node and rely on the standard queue-based aggregation.
Why it's wrong here
A plain one-to-one mapping copies each source occurrence directly, so duplicates are preserved rather than collapsed to distinct values. It also does not impose first-appearance ordering, since each context is processed independently. The scenario explicitly requires one target element per distinct value, which a direct node-to-node assignment cannot guarantee when the source contains repeated values.
- ✗
Add a Sort step in the integration flow before the mapping so identical values are adjacent, then map the source node directly to the target node.
Why it's wrong here
Sorting reorders the payload alphabetically or numerically, which destroys the first-appearance ordering the target requires. Even with duplicates adjacent, a direct node-to-node mapping still emits one target element per source occurrence, so duplicates are not removed. Sorting addresses neither the collapse of duplicates nor the preservation of the original sequence.
- ✓
Use a user-defined function that returns the distinct values and apply it with a context change so the target node repeats once per returned value.
Why this is correct
A user-defined function can iterate the source context, collect distinct values while preserving first-appearance order, and return a list. Placing that function in a context where the target repeating node is created causes one target element per returned value. This directly satisfies both the distinctness and ordering requirements without relying on post-processing steps.
- ✗
Configure the target node as a fixed-value node and bind it to the source field using the 'removeContexts' function.
Why it's wrong here
A fixed-value node emits a constant, not a value derived per distinct source entry, so the target would not carry the actual data. The removeContexts function removes context information and does not deduplicate values. This combination cannot produce one repeating target element per unique source value in first-appearance order.
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 →
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.