nerdexam
SAP

C_CPE_2409 · Question #50

Which configuration files are updated when you run the command `cds add xsuaa'? Note: There are 2 correct answers to this question.

The correct answer is C. package.json D. xs-security.json. Running cds add xsuaa integrates SAP's XSUAA authentication service into a CAP project by updating package.json (C) to add the required dependencies and CDS auth configuration under cds.requires, and generating or updating xs-security.json (D), which is the XSUAA security…

Authentication and Authorization

Question

Which configuration files are updated when you run the command `cds add xsuaa'? Note: There are 2 correct answers to this question.

Options

  • A.cdsre.json
  • Bxs-usertokens.json
  • Cpackage.json
  • Dxs-security.json

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    94% (34)

Explanation

Running cds add xsuaa integrates SAP's XSUAA authentication service into a CAP project by updating package.json (C) to add the required dependencies and CDS auth configuration under cds.requires, and generating or updating xs-security.json (D), which is the XSUAA security descriptor defining scopes, role templates, and roles for the application.

Option A (.cdsrc.json) is a distractor - while it's a valid CAP configuration file, the cds add commands write their CDS-specific config into package.json rather than .cdsrc.json. Option B (xs-usertokens.json) is a fabricated filename that doesn't correspond to any real SAP or CAP configuration file.

Memory tip: Associate the two correct files with their roles - xs-security.json is the security contract (who can do what), and package.json is the build contract (what libraries and config the project needs). Both must be updated together for XSUAA to work end-to-end.

Topics

#XSUAA#cds add xsuaa#xs-security.json#package.json

Community Discussion

No community discussion yet for this question.

Full C_CPE_2409 Practice