Question 1
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?
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.