C_CPE_2409 · Question #44
Which file includes by default the configuration for an external OData service in a Node.js CAP project?
The correct answer is D. service.cds. In SAP CAP (Cloud Application Programming Model) for Node.js, external OData service definitions are declared using CDS (Core Data Services) syntax, making service.cds the default home for modeling an external OData service's interface - you typically import its metadata here…
Question
Which file includes by default the configuration for an external OData service in a Node.js CAP project?
Options
- Aindex.js
- Bpackage.json
- Cmanifest.json
- Dservice.cds
How the community answered
(44 responses)- A7% (3)
- B2% (1)
- C2% (1)
- D89% (39)
Explanation
In SAP CAP (Cloud Application Programming Model) for Node.js, external OData service definitions are declared using CDS (Core Data Services) syntax, making service.cds the default home for modeling an external OData service's interface - you typically import its metadata here using using ... from './external/ServiceName' after running cds import on the service's EDMX file.
Why the distractors are wrong:
- A (index.js): This is a generic Node.js application entry point and has no role in CAP service modeling.
- B (package.json): While
package.jsonholds thecds.requiresblock for runtime binding (credentials, URLs), the structural definition of the service belongs in.cdsfiles. - C (manifest.json): This is an SAP Fiori/UI5 frontend descriptor - it lives in the
webapp/folder and is unrelated to backend CAP service configuration.
Memory tip: The extension is your cue - CAP uses CDS files (.cds) for Configuring services. If it's about the service shape, think .cds; if it's about the runtime connection, think package.json.
Topics
Community Discussion
No community discussion yet for this question.