Knowledge quiz

It's time to put what you've learned to the test, get 8 right to pass this unit.

1.

You have created a service definition that exposes an entity A, which is a projection on an entity B from the domain model. Which objects are generated in the database on the basis of this service model?

Choose the correct answer.
2.

For which databases does the CAP Node.js runtime provide out-of-the-box support?

There are three correct answers.
3.

What naming conventions are recommended when creating domain models?

There are three correct answers.
4.

In a service, an entity called Books is to be exposed, which is to be defined as a projection on the entity db.Books from the domain model. The exposed entity should allow access to the underlying data in a 1:1 manner. What syntax can you use for this?

There are two correct answers.
5.

What kinds of custom types can you define?

There are three correct answers.
6.

Which of the following statements about persistent SQLite databases are true?

There are two correct answers.
7.

Which of the following protocols does CAP support out of the box?

There are two correct answers.
8.

You want to define enumeration values for a custom-defined type called Status, which is based on the built-in type Integer. Available should symbolize the value 1 and Discontinued the value 2. Which of the following implementations is correct?

Choose the correct answer.
9.

For a domain model created in a CAP project, an SQL DDL script can be generated manually. Assuming that the domain model is contained in the db/model.cds file of the CAP project, which terminal command do you need to execute in the root directory of the project to generate the SQL DDL statements for the model?

Choose the correct answer.
10.

Suppose you want to explicitly specify /admin as the endpoint of an exposed service. How do you need to annotate the corresponding service definition to achieve this?

Choose the correct answer.