Knowledge quiz

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

1.

What is the @assert.target annotation used for in CAP?

Choose the correct answer.
2.

When implementing optimistic locking, which HTTP header is used to send the ETag value back to the server in a change request?

Choose the correct answer.
3.

What are after event handlers normally used for?

Choose the correct answer.
4.

How can you start debugging a CAP project in the SAP Business Application Studio?

There are three correct answers.
5.

Assuming you have constructed a query object q. How is the query executed on the database? 

There are two correct answers.
6.

Which statements regarding the calling of actions/functions are correct?

There are three correct answers.
7.

The cds.ql module exposes an SQL-like API for constructing database queries. Which of the following are names of global objects provided by the cds.ql module for query construction?

There are two correct answers.
8.

Suppose you use the @assert.range annotation to specify a value range for an element of an entity. What happens if a value outside the defined range is provided during a CREATE operation?

Choose the correct answer.
9.

Let's assume you want to use the @mandatory annotation to ensure that the String element title of an entity has non-empty input. Which of the following is a correct implementation of the @mandatory annotation for this purpose?

Choose the correct answer.
10.

The easiest way to add custom service implementations is to place an equally named .js file next to the .cds file that contains the respective service definition. As an alternative to this approach, which annotation can you use to explicitly reference the service definition in the .cds file to another .js file that should contain the service implementation?

Choose the correct answer.