C_abapd_2309 Free Sample Questions

20 free sample questions182 in the full practice test

Try simulator

C-ABAPD-2309 Sample Questions

  1. Question 1

    A development team is building a side-by-side extension on SAP BTP for an SAP S/4HANA Cloud system. The extension needs to read product master data. To adhere to Clean Core principles, which of the following is the most appropriate method for accessing this data?

    Answer and explanation

    Correct answer: B

    The core principle of Clean Core extensibility is to avoid direct dependencies on internal implementation details of the core system. Consuming a stable, released API provided by SAP ensures that the extension is decoupled and upgrade-safe. Direct database access, using unreleased BAPIs, or replicating data without a clear strategy violate these principles.

  2. Question 2

    A developer is implementing a managed RAP Business Object with draft capabilities. They need to create a custom action that copies data from a related entity into the current draft instance. This action should be available on the UI for the user to trigger. What is the correct way to define this action in the Behavior Definition?

    Answer and explanation

    Correct answer: C

    For a custom operation that acts on a specific instance of a business object (like a draft record) and is triggered by the user, an instance-based action is required. The syntax 'action ( instance )' defines it as such. The 'result [1] $self' part indicates that the action modifies and returns the state of the current instance. A static action is not tied to an instance, and a determination is an internally triggered operation, not a user-initiated one.

  3. Question 3

    You are designing a CDS data model for sales orders. You have a CDS view entity for Sales Order Headers (Z_I_SalesOrderHeader) and another for Sales Order Items (Z_I_SalesOrderItem). Each header can have multiple items. What is the most performant and semantically correct way to model this one-to-many relationship in the Sales Order Header CDS view to enable path expressions for accessing the items?

    Answer and explanation

    Correct answer: A

    A composition is the correct choice for modeling a part-of relationship where the lifecycle of the child entity (item) is dependent on the parent (header). This is a strong association that enables deep create/update/delete operations in RAP business objects. An association is weaker and implies independent lifecycles. A LEFT OUTER JOIN is a query-specific operation, not a reusable data model relationship. TO ONE cardinality is incorrect for a one-to-many relationship.

  4. Question 4

    Multiple answers

    A developer needs to create an in-app extension for a standard SAP Fiori app in S/4HANA Cloud. The requirement is to add a new custom field to the UI and implement logic to populate this field based on other standard fields. Which combination of extensibility tools and ABAP Cloud development model artifacts is required to achieve this? (Select TWO)

    Answer and explanation

    Correct answers: A, C

  5. Question 5

    When implementing a behavior for a managed RAP business object, you need to automatically set the CreatedOn timestamp when a new instance is created. Which RAP behavior artifact is specifically designed for this purpose?

    Answer and explanation

    Correct answer: B

    Determinations are used for implementing business logic that is executed internally in response to changes in a business object instance. The on modify trigger with the { create; } operation is the standard way to execute logic (like setting a timestamp) specifically when a new instance is created.

  6. Question 6

    True or False: In the ABAP Cloud development model, it is a recommended practice to directly call a standard SAP function module (e.g., BAPI_SALESORDER_CREATEFROMDAT2) from your custom code if it has not been officially released for cloud development.

    Answer and explanation

    Correct answer: B

    A fundamental rule of the ABAP Cloud development model and Clean Core is to only use released, stable APIs. Calling unreleased function modules, classes, or accessing dictionary objects directly is forbidden as it creates dependencies that can break during system upgrades. The ABAP compiler will prevent such calls.

  7. Question 7

    A consultant is reviewing an existing ABAP program for performance optimization. They find a LOOP AT statement on a large internal table that performs a READ TABLE on another large internal table inside the loop. Both tables are standard tables.

    LOOP AT lt_sales_orders INTO ls_sales_order.
    READ TABLE lt_customer_data INTO ls_customer_data
    WITH KEY customer_id = ls_sales_order-customer_id.
    " ... further processing
    ENDLOOP.
    

    Which of the following refactoring approaches offers the most significant performance improvement for this code snippet?

    Answer and explanation

    Correct answer: C

    Reading a single row from a large table inside a loop is a classic performance bottleneck. Changing the inner table (lt_customer_data) to a HASHED table with a unique key on the read condition (customer_id) provides near constant-time access (O(1)), which is significantly faster than the linear scan (O(n)) of a standard table or the logarithmic scan (O(log n)) of a sorted table or binary search.

  8. Question 8

    Multiple answers

    You are performing a code pushdown to a HANA database using a CDS Table Function. Which of the following statements about CDS Table Functions are correct? (Select TWO)

    Answer and explanation

    Correct answers: A, B

  9. Question 9

    A developer needs to implement a class that can calculate taxes for different countries. The base calculation logic is the same, but the tax rate is country-specific. The company plans to add support for more countries in the future without changing the existing code that calls the tax calculation service. Which object-oriented design principle is best suited for this requirement?

    Answer and explanation

    Correct answer: B

    The Open/Closed Principle states that software entities should be open for extension but closed for modification. By defining a common interface (e.g., ZIF_TAX_CALCULATOR) and creating separate classes for each country that implement this interface (ZCL_TAX_CALC_US, ZCL_TAX_CALC_DE), you can add new countries (extensions) without modifying the existing, tested code that uses the interface.

  10. Question 10

    An architect is designing a Fiori application using the ABAP RESTful Application Programming Model (RAP). The application needs to display a list of purchase orders and their items. The business logic requires that whenever a purchase order's status is updated, the LastChangedAt timestamp for all its associated items must also be updated. Where should this logic be implemented according to RAP best practices?

    graph TD subgraph PurchaseOrderBO [Purchase Order BO] direction LR POHeader[Root: Purchase Order Header] --> POItem[Child: Purchase Order Item] end POHeader --triggers--> UpdateLogic{Update Logic} UpdateLogic --updates--> POHeader UpdateLogic --cascades_update--> POItem
    Answer and explanation

    Correct answer: C

    In RAP, business logic should be encapsulated within the business object's behavior implementation. When a change in a parent entity needs to trigger a change in child entities, the logic belongs in the parent's behavior. A determination on modify for the header entity can be implemented to read the associated items using the EML READ ENTITIES statement and then update them using MODIFY ENTITIES, ensuring transactional consistency.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 182 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon