0% found this document useful (0 votes)
35 views12 pages

C Cpe 14-1

Uploaded by

asad ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views12 pages

C Cpe 14-1

Uploaded by

asad ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

C_CPE_14 SAP BTP EXTENSION DEVELOPER

1. By default, which file describes scopes and role-templates of an application for the
instantiation of an XSUAA service instance?
 xs-security.json
 package.json
 manifest.yml
 services-manifest.yml
Question was not answered

2. Which of the following can be used as identity providers for SAP BTP applications? Note:
There are 2 to choose.
 SAP Authorization and Trust Management Service
 Identity authentication tenant
 SAP S/4HANA Cloud
 SAP S/4HANA on-premise

3. What is one of the required steps to enable authentication support in CAP?


 Install a package.json module called passport.
 Install a CDS module called passport.
 Install aNode.js module called passport.
 Install a YAML module called passport.

4. What are some principles of continuous integration? Note: There are 2 to choose.
 Automated tests
 Automated deployment to the productivesystem
 Automated build
 Automated code change pushes

5. You use SAP Continuous Integration and Delivery for your CAP project. Where can you
access the Webhook Event Receiver?
 On the Repositories tab
 On theJobs tab
 On the Credentials tab

6.You have implemented a simple bookshop CAP application for the purpose of selling
books. You want to implement an event handler in the bookshop-service, that calculates a
discount of 10 % on the price of books written in English ("en"). In all other cases, you want
to calculate a discount of 5 %. The price should be calculated after books are read from the
service. Drag the code snippets from below into the correct parts of the event handler
implementation.

Drag the key and value items from below into the correct parts of the descriptor file.

Explanation::
 ‘bookshop-service’, after, ‘READ’, forEach, ‘book.language == ‘en’, ‘book.price =
book.price * 0.95, book.price= book.price * 0.9

7. What are tasksof the approuter? Note: There are 3 to choose.


 Routing requests from the web browser to the CAP service.
 Authorizing users for the CAP service and the provider of the UI service.
 Routing requests from the web browser to the provider of the UI service.
 Routing requests from the application to the SAP Launchpad service.
 Forwarding user requests to the XSUAA service for authentication and authorization.

8. You want to create a new service definition in your CAPproject. In which folder do you
place the service definition .cds file?
 /app
 /db
 /srv
 /root

9. Which language do you use to create a data model in a CAP project?


 SQL
 Core Data Services Query Language (CQL)
 Core Data Services Definition Language (CDL)
 ABAP

10. What does SAP Fiori elements use to generate the UI? Note: There are 2 to choose.
 Custom UI logic
 Annotations in the OData service
 Authorizations in the OData service
 The entity definition of the OData service

11. Your customer presents you with the following UIrequirements: Users need to work
through a comparatively small set of items, one by one. Multiple views of the same content.
One kind of data visualization .

Which SAP Fiori elements floorplan do you recommend they use?


 Analytical list page
 Worklist
 Object page
 List report

12. Which of the following can be used as a management tool for SAP Business Technology
Platform? Note: There are 2 to choose.
 SAP Solution Manager
 SAP BTP CLI
 SAP Business Application Studio
 Cloud Foundry CLI

13. Your customer presents you with the following UI requirements: Users work on different
kinds of items. Different visualizations without interactions between the visualizations. No
drilldown.

Which SAP Fiori elements floorplan do you recommend they use?


 Object page
 Analytical list page
 Worklist
 List report
14. What are some characteristics of YAML files? Note: There are 2 to choose.
 YAML files can be used as configuration files.
 YAML files are based on XM
 YAML files relyon correct indentation.
 YAML files are also valid JSON files.

15. Your CAP project contains an entity called Books. You want to extend the Books entity
with the managed aspect.

You have already imported the aspect from the '@sap/cds/common' package (see attached
graphic).

Which is a valid way to extend the entity with the aspect?

 Option A
 Option B
 Option C

16. Which severity level matches which request method?


Explanation:
Req.notify C 1 Req.info C 2 Req.warn C 3 Req.error C 4

17. Which event phases can you use with CAP event handlers by default? Note: There are 3
to choose.
 on
 while
 after
 before
 between

18. How can you bring your company's user base into your SAP BTP subaccount?
 Create the users manually in the security section of your subaccount.
 Establish a trust relationship with your corporate identity provider.
 Import the users via .csv file upload in the SAP BTP cockpit.
 Establish a trust relationship with the default identity provider.

19. Your customer presents you with the following UI requirements: The same visualizations
for all users. Extraction of key information to identify a root cause. Searching, filtering, and
sorting of items .

Which SAP Fiori elements floorplan do you recommend they use?


 Worklist
 Object page
 Analytical list page
 List report

20.To grant a user access to an application in an SAP BTP subaccount, what must you
assign to this user?

 A role
 A role Template
 A role Collection

21.What is a rule of thumb for when to use namespaces in your models?

 When your models are reused in other projects


 When your model names are unique
 When your app rarely exposes services

22.During application development, what are some principles of dealing with application
errors? Note: There are 2 to choose.

 Hide error and continue silently


 Use try/catch blocks springly
 Use as many try/catch blocks as possible
 Log unexpected errors

23. What are some characteristics of CAP event handling? Note: There are 2 to choose.

 You can register only one event handler for a specific event.
 You must use the handler registration API srv.emit() to de-register event handlers.
 You can register event handlers with instances of cds.service to add custom logic.
 You can register multiple event handlers for each event phase.

24. You want to register custom event handlers using instances of CAP Node.js SDK
classes. Which one do you use?

 cds.Request

 cds.Service

cds.Event

25. What are some core principles of the design philosophy of SAP Fiori?
Note: There are 3 to choose.

 Productive

 Adaptive

 Role-based

 Intuitive

 Coherent
26. Which basic user types exist on the SAP Business Technology Platform? Note: There
are 2 to choose.
 Platform users

 Application users

 Technical users

 Business users

27. What is recommended by SAP when you publish an API?


Note: There are 2 to choose.

 Use meaningful, clear, and self-explanatory API names.

 Remove obsolete APIs without notice.

 Provide good API documentation.

 Use version numbers in the API names.

28. Which of the following SAP Fiori pages areas are mandatory?
Note: There are 2 to choose.

 Header

 Content

 Toolbars

 Footer
29. You have set up a pipeline in the SAP Continuous Integration and Delivery service
with automated deployment. A build was initiated and failed. What do you check to find
out which step of the pipeline failed?

 The webhook of your version control system

 The webhook event receiver

 The stages of the failed job run

 The stages in the config.yml in the .pipeline folder

30. You initialize a new CAP project with initial project structure using a generator in SAP
Business ApplicationStudio. What are some of the default elements beingcreated? Note:
There are 2 to choose.
 A. file package.json
 B. file manifest.yml
 C. folder /approuter
 D. folder /app

31. You want to create a new service definition in your CAPproject. In which folder do
you placethe service definition .cds file?

 A. /app
 B. /db
 C. /srv
 D. /root

32. To Establish Trust , which of the following can be targets of the SAP Authorization
and Trust Management Service?

 Multi-environments
 Identity providers
 Platforms
 Users

33. Before you can use SAP Continue Integration and Delivery in Your CAP project, what
must you do in your SAP BTP Account , Note 2 chose answer.

 Subscribe to an SAP CI/CD service plan


 Assign an propriate role collection to your user
 Create an SAP CI/CD service instance
 Assign an appropriate role template to your user

34. What are some characteristics of JSON files? There are 2 choose

 JSON Files contain human-readable data


 JSON Files are based on XML .
 JSON Files are also Valid YAML files.
 JSON Files contain java script command

35. What are the relationships? (Drag and drop the labels at the bottom onto the framed
locations of the image above.)

Options:
A. Option is correct.
Explanation: User, Role collection, Scope, Role

36. You use the Cloud MTA Build Tool to create an MTA archive (.mtar) from your project
source. What command must you run to do this in one step?

A. mbt build
 B. mbt init
 C. mbt make
37. You have implemented a simple bookshop CAP application for the purpose of selling
books. You want to implement an event handler in the bookshop-service, that calculates
a discount of 10 % on the price of books written in English ("en"). In all other cases, you
want to calculate a discount of 5 %. The price should be calculated after books are read
from the service. Drag the code snippets from below into the correct parts of the event
handler implementation. Drag the key and value items from below into the correct parts
of the descriptor file.
Answer:
‘bookshop-service’, after, ‘READ’, forEach, ‘book.language == ‘en’, ‘book.price = book.price * 0.95,
book.price = book.price * 0.9

38.you have developed a CAP project and added the XSUAA Security configuration.
What information is stored in the xs.security.json file? There are 2 to choose.

 Roles
 Users
 Scopes
 Role-templates

39. which identifier is used by the XSUAA to distinguish applications and scopes?

 Tenant-mode
 Xs-security
 Xsappname
 Vcap-services

40. In your Git system, you have set up a webhook for your SAP Continuous Integration
and Delivery pipeline. What kind of request does this webhook send to the specified
payload URL?
Options:

 PATCH request

 POST request

 PUT request

 GET request

41. When Would you choose SAP Fiori elements for app development?
There are 2 correct answer this question.

 When unique floorplans are required


 When standard floorplans are sufficient
 When flexibility is more important than speed
 When speed is more important than flexibility

42. When using namespace ,what does SAP recommended you use to construct names
for namespaces?

 Cascades of acronyms
 Your organization’s name
 Reverse domain names

43. what are some characteristics of API’s?


Note there 2 correct answer this question.

 All API’s use the common JASON format


 The communication protocol of API’s is defined in their specification
 They specify how software programs exchange information using standardized protocols
 They can always be used without authentication

44.what are standard events that CAP handles by default?


There are 3 correct answer this question .

 Read
 Write
 Update
 Refresh
 create

45. what is java script Object Notation(JSON)?

 An open-standard format to structure java script programs


 An open-standard format to structure data transferred using web technologies
 A simple way to annotate objects in java script
 A notation command for automatically instantiating java script objects

46. what is a difference between business users and platform users on the SAP BTP?
There are 2 correct answer to this question.

 Platform user deploy , administer, and troubleshoot applications and services


 Plateform users use deployed applications
 Business users use deployed applications
 Business users deploy,administer ,and troubleshoot applications and services

47. In your Git system, you have set up a webhook for your SAP Continuous Integration
and Delivery pipeline. What does the webhook require to send a request to the specified
payload URL .
Options:

 A user
 A content type
 A password
 A secret

48. What does the SAP Fiori elements use to generate the UI?
There are 2 correct answer this question .

 The entity definition of the odata service


 Custom UI logic
 Annotations in the odata service
 Authorizations in the odata service
49. In an SAP business application studio project, what does the ‘’cf push ‘’ command
do?

 It deploys the application modules defined in the manifest.yml file into the cloud foundry
account
 It creates the service instances of the services defined in the service-manifest.yml file
 It updates the service instances of the services defined in the service –manifest.yml file.

50.which format supported by ODATA?


Note there are 2 correct this question

 YAML
 XML-BASED ATOMPUB
 XHTML
 JSON

51. Which of the following HTTP verbs are provided by ODATA?


There are 2 correct this question

 PATCH
 GET
 TRACE
 CONNECT

52. In SAP FIORI ,how are drafts used?


There are 2 correct this answer.

 To prevent an object being edited by multiple users concurrently


 To enable empty states of apps
 To prevent data loss in case an app terminates unexpectedly
 To enable responsiveness of apps

53. which management tool can you use to deploy a CAP project into a space of your
SAP BTP Subaccount ?

 Cloud foundry command line interface


 SAP BTP Command line interface
 API’s for SAP BTP

54. what are some characteristics of Odata ?


Note there are 2 correct this answer

 ODATA build on HTTP ,Atompub , and json using URI’s to address and access data feed
resources
 ODATA uses the SOAP protocol
 ODATA is an architectural design template for hypermedia information systems
 ODATA is RESTful.

55. What is a necessary step to implement a custom error handler in the CAP SDK For
Node.js?
 Write a custom node.js package
 Register the error handler function for the before phase of the error
 Register the error handler function for the on phase of the error
 Catch exceptions during a CRUD operation

56. you have developed a risk service application in CAP?


To which file must you add restrictions - @(restrict..) – to add authorizations to your
service?

 Srv/risk-service.cds
 Srv/risk-service.js
 Xs-security.js
 Package-lock.json

57. your company is using the SAP authorization and trust management service in
conjunction with the XSUAA service to authorize their applications.
Where do you handle your defined scopes in role-templates?

 In an xs-scurity.json file
 In an instance of the XSUAA service
 In a role-collection

58. which of the following are added to your CAP project when you run the ‘’ cds add
pipeline ‘’ command in a SAP business application studio terminal?
There are 2 correct answer this question.

 A pipeline folder with a manifest.yml file


 A file named Jenkins file
 A Jenkins folder with a manifest.yml file
 A pipeline folder with a config.yml file

59. Using a terminal in SAP business studio , you want to anable authorization support
via XSUAA In CAP FOR SAP BTP
Which command must you run in the terminal?

 Npm i..save as xs-security.json



 Cds compile srv—to xsuaa > xs-security.json

 Cds compile srv – to xsuaa >@sap/xssec@sap/xsenv

 Npm I – save @sap/xssec@sap/xsenv

60. Which error is thrown by the CAP SDK For Node.js when a CRUD operation violates
the foreign key constraints?

 ILLEGAL_CRUD_OPERATION
 CX_SY_CONSTRAINT_VIOLATION
 FORIGN_KEY_VIOLATION
 UNIQUE_CONSTRAINT_VIOLATION
61.you have configure an approuter by creating the xs-app.json file in the approuter
folder …….with the following content: {‘’authentication Method’’,},’’routes’’:[{‘’source”:
“……………..what does this routes array tell the approuter?

 All request starting with/service will be forwarded to the CAP service.


 The file in the resources folder will be reserved for all request to /app
 All request starting with / service will be targeted to the folder resources
 The files requested for/app will be put to the resources folder

You might also like