C_CPE_2409 · Question #58
In the context of a CAP application, what is one of the actions of the cds build command?
The correct answer is C. To compile the application. cds build compiles your CAP application - it processes CDS models, resolves imports, and generates deployment-ready artifacts (like CSN files, SQL DDL, and EDMX metadata) from your source definitions. This is a compilation step, making C correct. Why the distractors are wrong…
Question
In the context of a CAP application, what is one of the actions of the cds build command?
Options
- ATo deploy the application to SAP BTP
- BTo execute test cases
- CTo compile the application
- DTo create Docker images
How the community answered
(51 responses)- A4% (2)
- B2% (1)
- C92% (47)
- D2% (1)
Explanation
cds build compiles your CAP application - it processes CDS models, resolves imports, and generates deployment-ready artifacts (like CSN files, SQL DDL, and EDMX metadata) from your source definitions. This is a compilation step, making C correct.
Why the distractors are wrong:
- A (Deploy to SAP BTP): Deployment is handled by
cf pushorcds deploy, notcds build. Build and deploy are separate pipeline stages. - B (Execute test cases): Testing is done via
npm testor your chosen test runner (e.g., Jest/Mocha) -cds buildhas no test-execution role. - D (Create Docker images): Docker image creation requires a
Dockerfileanddocker build;cds buildproduces no container artifacts.
Memory tip: Think of cds build like a compiler for your data models - just as tsc compiles TypeScript into JavaScript, cds build compiles your .cds source files into artifacts a runtime or database can consume. Build = compile, always.
Topics
Community Discussion
No community discussion yet for this question.