nerdexam
SAP

C_CPE_2409 · Question #42

You use the Nest Framework and Visual Studio Code to develop an extension application.Which activities can you perform in the development environment? Note: There are 2 correct answers to this…

The correct answer is A. Automatic re-build of a TypeScript program when the source code is modified. D. Run the JavaScript program and make it stop at breakpoints. When developing a NestJS application in VS Code, A is correct because NestJS supports a watch mode (nest start --watch) that uses TypeScript's compiler in watch mode, automatically re-building the project whenever source files change - this is a core part of the NestJS…

Testing and Debugging

Question

You use the Nest Framework and Visual Studio Code to develop an extension application.Which activities can you perform in the development environment? Note: There are 2 correct answers to this question.

Options

  • AAutomatic re-build of a TypeScript program when the source code is modified.
  • BRun the Java program and make it stop at breakpoints.
  • CAutomatic re-deploy of a JavaScript program when the source code is modified.
  • DRun the JavaScript program and make it stop at breakpoints.

How the community answered

(15 responses)
  • A
    93% (14)
  • C
    7% (1)

Explanation

When developing a NestJS application in VS Code, A is correct because NestJS supports a watch mode (nest start --watch) that uses TypeScript's compiler in watch mode, automatically re-building the project whenever source files change - this is a core part of the NestJS development workflow.

D is correct because VS Code has native Node.js/JavaScript debugging capabilities, and since NestJS compiles TypeScript down to JavaScript and runs on Node.js, you can attach the VS Code debugger and set breakpoints that pause execution in the running JavaScript program.

B is wrong because NestJS is a Node.js framework - it has nothing to do with Java, and VS Code's Java debugging requires separate extensions and a completely different runtime environment.

C is wrong because while auto-rebuild on save is supported, the operation is a local restart (not a re-deploy). Deployment implies pushing to a remote environment, which is not what the NestJS watch mode does.

Memory tip: Think "NestJS = TypeScript → JavaScript on Node.js." VS Code can watch-compile TypeScript (A) and debug the resulting JavaScript (D). Eliminate Java (B) immediately since Nest is Node-based, and distinguish restart from re-deploy (C) - dev tools rebuild locally, they don't ship to production.

Topics

#Nest Framework#VS Code#TypeScript debugging#auto-rebuild

Community Discussion

No community discussion yet for this question.

Full C_CPE_2409 Practice