Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free SAP Certified Associate - Backend Developer - SAP Cloud Application Programming Model Exam C_CPE_2409 Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: SAP Cloud Application Programming Model

Skill tested: Designs CAP service projections that expose only required business data and operations.

A team is building a CAP application that reads customer and sales-order data from a remote S/4HANA service. The external model contains many fields, but the application should expose only customer name, order ID, order date, and a calculated order status. Users must not be able to update the remote data through this application. The team wants to preserve the remote service as the source of truth and avoid duplicating its entities in a locally managed database. Which design best satisfies these requirements?

Correct Answer: C. Define a CAP service projection on the imported external entities, expose only the required elements, and make the projection read-only.
Explanation:

A service projection over imported external entities lets the CAP service expose a controlled subset of the remote model while retaining the remote service as the data source. Marking the projection read-only prevents writes through the CAP endpoint, and a calculated element can provide the derived status. Periodic local synchronization duplicates data and adds consistency work. Copying the model and enabling generic CRUD exposes more than required and does not preserve the intended external-service boundary. Hiding fields only in the user interface is not an access-control measure.

Question 2

New Multiple answers

Topic: SAP Cloud Application Programming Model

Skill tested: Models managed entities and associations using CAP conventions for persistence and change tracking.

A CAP application stores work orders in its own database. Each work order needs a generated UUID, creation and modification timestamps, and the user IDs responsible for those changes. A work order can contain multiple items, and each item belongs to exactly one work order. The team wants standard CAP persistence behavior and does not want to implement timestamp or key-generation logic in custom handlers. Which two modeling choices are appropriate? Select TWO.

Correct Answer: A. Use `cuid` and `managed` aspects on the persistent work-order entity.; B. Declare the work-order-to-item relationship as a composition, with items dependent on their parent work order.
Explanation:

The `cuid` aspect supplies a UUID key convention, while `managed` adds standard creation and modification metadata that CAP manages during persistence. A composition expresses the lifecycle dependency of work-order items on their parent and is appropriate for an owned, hierarchical model. An unmanaged association does not provide those conventions and would require custom logic. A service projection does not itself create persistence keys or audit behavior, and a scalar array is not a substitute for a properly modeled dependent entity.

Question 3

New Single answer

Topic: SAP Cloud Application Programming Model

Skill tested: Implements CAP request validation and business rules in the appropriate service lifecycle phase.

A CAP service accepts requests to approve purchase requisitions. Approval is allowed only when the requisition is in the `Submitted` state and its total value is within the approving user's limit. The rule must be enforced for every client, including direct API callers, before any database change occurs. The team has a custom action and also exposes entity update operations. What is the best implementation approach?

Correct Answer: A. Implement server-side validation in the relevant CAP service event handlers before the write or action is processed.
Explanation:

Business rules that must apply to all callers belong on the server side. CAP service handlers can validate the requisition state and the caller's authorization limit before processing a write or custom action, preventing invalid changes regardless of client. UI-only checks are bypassable through direct API calls. An `after` handler runs after the operation and is not the right place to prevent an invalid write. A filtered database view neither implements the state transition rule nor reliably evaluates user-specific approval limits.

Question 4

New Single answer

Topic: SAP Cloud Application Programming Model

Skill tested: Configures CAP authorization annotations and role-based access for service operations.

An application exposes an `Orders` entity and a `cancel` action. All authenticated employees may read orders, but only users with the `OrderManager` role may cancel them. The application uses CAP authorization enforcement rather than relying on the client to hide the action. Which approach best implements the requirement?

Correct Answer: D. Apply a role restriction to the `cancel` action and allow authenticated users to read the entity.
Explanation:

CAP authorization should be enforced at the service boundary. Restricting the action to `OrderManager` while permitting authenticated reads matches the different access requirements for reading and cancellation. Hiding a button or using a visibility field does not authorize the server-side operation. Direct database access bypasses the service's authorization model. Protecting the whole service with the manager role would unnecessarily deny ordinary employees read access, while an unauthenticated read endpoint would weaken security.

Question 5

New Multiple answers

Topic: SAP Cloud Application Programming Model

Skill tested: Uses CAP external services and destination-based connectivity for remote service integration.

A CAP application on SAP BTP must retrieve delivery status from a remote S/4HANA API. The S/4HANA system is reached through a configured destination, and its API credentials must not be embedded in source code. The application should consume the remote service through CAP's service model and should not create a local replica. Which two actions fit this design? Select TWO.

Correct Answer: C. Import the remote API's service definition into the CAP project and declare it as an external service.; D. Use CAP's remote-service connectivity configuration to resolve the destination at runtime.
Explanation:

CAP models a remote API as an external service, commonly using imported service metadata, and connects to it through runtime configuration that resolves the destination and its credentials. This keeps secrets out of source code and avoids treating remote data as locally owned. Credentials in annotations are exposed configuration, not a secure destination mechanism. Generic CRUD on a local entity does not call the remote API, and copying data on each request adds unnecessary persistence and does not satisfy the requirement to consume the remote service.

Question 6

New Multiple answers

Topic: SAP Cloud Application Programming Model

Skill tested: Designs CAP OData projections and actions for a constrained business API.

A CAP service is being designed for a maintenance application. Clients need to read a restricted set of fields from maintenance orders, submit an explicit `release` operation, and receive only orders assigned to their plant. The application must not expose unrestricted entity updates, and the restriction must be enforced by the service rather than by client filtering. Which two design decisions should the developer make? Select TWO.

Correct Answer: B. Expose a projection containing only the permitted fields and annotate its read access with a server-enforced plant restriction.; C. Expose a bound `release` action and implement its state-transition checks in the service.
Explanation:

A projection controls the service shape, while a server-side row restriction ensures the plant condition is enforced for every consumer. A bound action expresses the explicit business operation and allows the service to check the order's state and apply the transition consistently. Exposing every field and relying on client behavior is unsafe. Generic updates permit changes beyond release, and documentation cannot enforce them. UI filtering does not protect the OData endpoint from direct requests.

Question 7

New Single answer

Topic: CICD

Skill tested: Builds and deploys CAP applications reproducibly using pipeline and MTA build artifacts.

A delivery team deploys a CAP application to SAP BTP Cloud Foundry from a continuous integration pipeline. Developers currently run a local build and manually upload whatever files happen to be in their workspace. A production deployment must be reproducible, use the same tested artifact promoted through environments, and avoid dependence on a developer's machine. What should the team do?

Correct Answer: D. Have the pipeline build the deployable MTA archive, run the applicable checks, retain that artifact, and promote the same archive through environments.
Explanation:

A controlled pipeline build creates a versioned deployment artifact from a known source revision and makes deployment repeatable. Promoting the same tested MTA archive avoids differences introduced by rebuilding or selecting files manually in later environments. A developer workspace is not a reliable release source. Building from a moving branch in production can produce a different result from the tested build, while a shared folder without artifact identity and pipeline controls leaves the release non-reproducible.

Question 8

New Single answer

Topic: SAP BTP Runtimes

Skill tested: Selects SAP BTP runtime environments according to application packaging and operational needs.

A company has a CAP Node.js application packaged with an MTA descriptor. It relies on Cloud Foundry service bindings and platform-managed deployment of multiple modules. The operations team requires a runtime environment that supports this deployment model without redesigning the application as containers or Kubernetes workloads. Which SAP BTP runtime is the best fit?

Correct Answer: D. SAP BTP, Cloud Foundry runtime.
Explanation:

The Cloud Foundry runtime directly supports the described CAP deployment pattern: MTA-based application modules, Cloud Foundry service bindings, and platform-managed application processes. Kyma is a Kubernetes-based runtime and would require a container-oriented deployment design rather than treating an MTA descriptor as a pod specification. SAP HANA Cloud is a database service, not a general CAP application runtime. Build Work Zone provides digital workplace capabilities, not the requested backend runtime.

Question 9

New Multiple answers

Topic: SAP BTP Runtimes

Skill tested: Distinguishes Cloud Foundry and Kyma deployment models for CAP applications.

An architecture group is evaluating whether to deploy a new CAP workload to Cloud Foundry or Kyma on SAP BTP. The service is currently a Node.js application; the team has an established container build and Kubernetes operations expertise, but it must also assess what changes if it chooses Kyma. The group wants statements that accurately describe the runtime distinction, not claims that one runtime automatically converts the other runtime's artifacts. Which two statements are accurate? Select TWO.

Correct Answer: B. Cloud Foundry applications are deployed and managed using the Cloud Foundry application model, including buildpacks or supported container images and service bindings.; D. Kyma is Kubernetes-based and uses container-oriented deployment and Kubernetes resources.
Explanation:

Cloud Foundry and Kyma are distinct runtime environments with different application lifecycle and deployment models. Cloud Foundry manages applications through its platform model, while Kyma is based on Kubernetes and expects container-oriented workloads and Kubernetes resources. An MTA archive is not itself a Kubernetes manifest; deployment may require an appropriate adaptation or tooling. The runtimes do not have identical lifecycle controls, and Cloud Foundry supports Node.js applications, so the final statement is also false.

Question 10

New Single answer

Topic: SAP BTP Runtimes

Skill tested: Chooses the appropriate runtime for a containerized CAP application requiring Kubernetes control.

A product team has a CAP application packaged as a container image and depends on Kubernetes resources for deployment orchestration. Its platform engineers need access to Kubernetes-native operational patterns and are prepared to maintain the associated cluster-level configuration. They do not need to preserve an existing Cloud Foundry application deployment model. Which SAP BTP runtime most directly fits these requirements?

Correct Answer: B. SAP BTP, Kyma runtime, because it provides a Kubernetes-based environment for containerized workloads.
Explanation:

Kyma is the suitable choice when the workload is containerized and the team requires Kubernetes-native deployment and operational resources. Cloud Foundry can support application deployment, but it does not provide the Kubernetes-native control model requested in this scenario. SAP HANA Cloud is a database service, not a general container runtime, and the ABAP environment is intended for ABAP development rather than running Node.js containers.

Question 11

New Single answer

Topic: SAP BTP Runtimes

Skill tested: Diagnoses runtime-specific deployment failures caused by mismatched artifact and environment models.

A release pipeline successfully builds a CAP application as a container image. Deployment to a Cloud Foundry space then fails because the release process attempts to submit a Kubernetes Deployment manifest, and the operations team expects Kubernetes resources to control replicas. The team must keep the existing image-based CAP application and Kubernetes operational model. What is the most appropriate next step?

Correct Answer: A. Deploy the container workload to an appropriate Kyma environment and configure its Kubernetes resources there.
Explanation:

The failure reflects a mismatch between the deployment artifact and the target runtime: a Kubernetes Deployment manifest is for a Kubernetes environment, while Cloud Foundry uses its own application lifecycle model. Since the team explicitly needs to retain the container image and Kubernetes replica controls, Kyma is the direct fit. An MTA descriptor does not make Cloud Foundry manage Kubernetes resources. Service definitions and routes likewise do not translate Kubernetes manifests into pods.

Question 12

New Single answer

Topic: SAP BTP Runtimes

Skill tested: Uses runtime service bindings to provide CAP applications with managed credentials.

A CAP application running in Cloud Foundry connects to a managed database service. A deployment succeeds, but the application logs show that its database credentials are missing. The credentials were manually copied into a developer's local environment and are not present in the deployed process. Security policy prohibits embedding passwords in source code or deployment files. What should the team do?

Correct Answer: D. Bind the required database service instance to the application and use the runtime-provided binding information.
Explanation:

A Cloud Foundry service binding makes the managed service's connection information available to the application at runtime through the platform's binding mechanism. This keeps credentials out of source code and deployment artifacts while allowing the deployed process to connect. A developer's local environment is not automatically part of the deployed application. Source code, public routes, and application data entities are not appropriate stores for service credentials and create avoidable exposure risks.

Question 13

New Multiple answers

Topic: SAP S/4HANA Cloud Extensibility

Skill tested: Selects clean-core extensibility options for adapting S/4HANA Cloud business behavior.

A business needs to add a custom field to an S/4HANA Cloud business object, adjust the screen so users can enter it, and run a validation when the object is saved. The solution must remain within supported extensibility mechanisms so upgrades do not depend on modifications to SAP-delivered code. Which two approaches should the team evaluate? Select TWO.

Correct Answer: A. Use an available released extension point or developer extensibility mechanism for the save-time validation.; D. Use key-user extensibility capabilities for the supported custom field and UI adaptation.
Explanation:

Key-user extensibility is suited to supported adaptations such as adding custom fields and changing permitted UI behavior. A save-time business rule should use a released extension point or an applicable developer extensibility mechanism, preserving the clean-core boundary. Direct modification of SAP-delivered code is not a supported upgrade-safe approach. Direct database writes bypass application validations and APIs, while replacing the standard object abandons its business semantics and supported integration surface.

Question 14

New Single answer

Topic: SAP S/4HANA Cloud Extensibility

Skill tested: Chooses released APIs for side-by-side integration with S/4HANA Cloud.

A CAP application on SAP BTP needs to enrich sales-order processing with information from an external planning system. It must read and, where supported, update S/4HANA Cloud business data without modifying the S/4HANA application. The organization requires a stable, upgrade-compatible integration contract and disallows direct database access. Which integration approach is most appropriate?

Correct Answer: B. Consume the relevant released S/4HANA Cloud APIs through a configured destination, using supported operations and authorization.
Explanation:

Released APIs provide the supported contract for side-by-side applications to interact with S/4HANA Cloud, while a destination centralizes connectivity configuration and credentials. The application should use only operations the API supports and authorize them appropriately. Direct database access is not a supported substitute for business APIs and can bypass validations. Copying internal implementation code creates tight coupling to internals, and modifying the standard application violates the requirement to preserve an upgrade-compatible extension model.