Courseiva

C_CPI Integration Suite Development Practice Question

An integration developer is using the XML-to-JSON converter in SAP Cloud Integration to transform an incoming XML message. The XML contains an attribute 'currency' on the 'price' element. After conversion, where will this attribute appear in the resulting JSON?

⚠ Common exam trap

The trap here is assuming that XML attributes become regular JSON properties without any special notation, when in fact the converter uses the '@' prefix to denote attributes.

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

✓

As a JSON property named '@currency' nested within the 'price' object.

The XML-to-JSON converter in SAP Cloud Integration represents XML attributes as JSON properties prefixed with '@'. Therefore, an attribute 'currency' on the 'price' element becomes '@currency' within the 'price' object. This convention ensures attributes are distinct from child elements and maintains the hierarchical relationship. Other prefixes or placements would not conform to the converter's standard behavior.

Answer analysis

Option-by-option breakdown

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

  • ✗

    As a JSON property named 'currency' nested within the 'price' object, without any prefix.

    Why it's wrong here

    Without a prefix, the attribute would be indistinguishable from a child element in JSON, leading to ambiguity. The converter uses '@' to explicitly mark attributes. A plain 'currency' property would not correctly represent the XML attribute and could conflict with a child element of the same name.

  • ✗

    As a JSON property named '_currency' nested within the 'price' object.

    Why it's wrong here

    The underscore prefix is not used for attributes by the XML-to-JSON converter. This converter uses '@' to denote attributes. Using '_currency' would be incorrect and would not match the expected output, potentially causing downstream mapping errors. The correct prefix is '@'.

  • ✗

    As a JSON property named 'currency' at the same level as 'price'.

    Why it's wrong here

    The XML-to-JSON converter in SAP Cloud Integration does not promote attributes to sibling properties by default. It uses a specific convention to represent attributes, typically prefixing them. Placing 'currency' as a sibling to 'price' would lose the association between the attribute and its element, which is not how the converter behaves.

  • ✓

    As a JSON property named '@currency' nested within the 'price' object.

    Why this is correct

    The XML-to-JSON converter in SAP Cloud Integration follows a convention where XML attributes are represented as JSON properties prefixed with '@'. For an attribute 'currency' on element 'price', the resulting JSON will have a 'price' object containing a property '@currency'. This preserves the attribute's association with its element and is the standard behavior.

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.