Knowledge quiz

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

1.

Which elements of an entity are suitable for use as an ETag element for optimistic locking?

Choose the correct answer.
2.

What is the expected outcome when a PUT request is made with an outdated ETag value?

Choose the correct answer.
3.

What type of event handler is used to implement actions/functions?

Choose the correct answer.
4.

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.
5.

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

There are two correct answers.
6.

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.
7.

What are after event handlers normally used for?

Choose the correct answer.
8.

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.
9.

Is the following statement regarding the difference between actions and functions correct? Functions modify data on the server, actions retrieve data.

Choose the correct answer.
10.

What arguments do after event handlers receive?

There are two correct answers.