Why should you register an error handler in your service implementation for the exception of the CAP SDK for Node.js?
A. To ensure that the end user receives a message
B. To avoid a break in the app execution
C. To provide a meaningful error message
D. To force the execution of the CRUD operation
正解:A
質問 2:
You want to implement an event handler to show a console log once a supplier record is read.What is the correct syntax to implement this?
A. const cds = require('@sap/cds')module.exports = cds.service.impl(function () { const {Supplier} = this.entities() this.after('each',Supplier, row =>{ console.log(`Read Supplier: ${row.ID}`)})})
B. const cds = require('@sap/cds')module.exports = cds.service.impl(function () { const {Supplier} = this.entities()this.on('each',Supplier, row =>{ output.log(`Read Supplier: ${row.ID}`)})})
C. const cds = require('@sap/cds')module.exports = cds.service.impl(function () { const {Supplier} = this.entities() this.after('each',Supplier, row =>{ output.log(`Read Supplier: ${row.ID}`)})})
D. const cds = require('@sap/cds')module.exports = cds.service.impl(function () { const {Supplier} = this.entities() this.on('each',Supplier, row =>{ console.log(`Read Supplier: ${row.ID}`) })})
正解:B
質問 3:
Which Node.js module do you use to run an SQL statement against the SAP HANA database?
A. @sap/hdbext
B. @sap/hdi
C. @sap/xssec
D. @sap/xsenv
正解:A
質問 4:
What can you use for Core Data Services (CDS)-based security in the SAP Cloud Application Programming Model?Note: There are 2 correct Answers to this question.
A. Privileges
B. Authorizations
C. Roles
D. Scopes
正解:B,C
質問 5:
Which resource types can you use in an mta.yaml file?Note: There are 3 correct Answers to this question.
A. com.sap.xs.pgp
B. com.sap.xs.hdi-container
C. com.sap.xs.web
D. com.sap.xs.hana-sbss
E. com.sap.xs.uaa
正解:B,D,E
質問 6:
What is mandatory when working on public Git in a distributed environment?
A. Buy the software license on the Git website.
B. Block the piece of code you are working on in the central repository.
C. Keep the entire history of your project locally.
D. Connect to a central repository to share your project contribution.
正解:D
Sugiyama -
全くのゼロからこの試験に挑もうとしている方にはうってつけのC_HCDEV_01一冊と感じます。