nerdexam
SAP

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…

Deployment

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)
  • A
    4% (2)
  • B
    2% (1)
  • C
    92% (47)
  • D
    2% (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 push or cds deploy, not cds build. Build and deploy are separate pipeline stages.
  • B (Execute test cases): Testing is done via npm test or your chosen test runner (e.g., Jest/Mocha) - cds build has no test-execution role.
  • D (Create Docker images): Docker image creation requires a Dockerfile and docker build; cds build produces 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

#CAP#cds build#compilation#build command

Community Discussion

No community discussion yet for this question.

Full C_CPE_2409 Practice