Knowledge quiz

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

1.

Assume that the Books entity has a managed to-one association to the Authors entity defined via an element called author. Now you want to implement a to-many association in the Authors entity to the target entity Books using an element called books. Which syntax do you use for this?

Choose the correct answer.
2.

You want to use the predefined countries code list to assign a publication country to a book using the publCountry element of the Books entity. The predefined type Country and the sap.common.Countries code list have already been imported into your CDS model. How can you define the publCountry element?

There are two correct answers.
3.

You want to use the two common reuse aspects CodeList and Currency from the pre-built CDS model to extend the definition of a domain entity. What syntax can you use to import these aspects into your CDS model?

Choose the correct answer.
4.

For an application that provides localized versions of application data, you would like to request the German version of the data. What options do you have to achieve this?

There are two correct answers.
5.

You have created your own code list called Epochs and want to use this in the Authors entity via an element named epoch to assign an epoch to an author. How do you define this epochelement?

Choose the correct answer.
6.

You want to extend the definition of the entity Authors by the two named aspects A and B. Which syntax do you use for this purpose?

Choose the correct answer.
7.

Assume that a one-to-many relationship between the entities Orders and OrderItems is defined as a composition. Which of the following statements are true?

There are two correct answers.
8.

Which of the following are elements defined on the sap.common.CodeList aspect?

There are two correct answers.
9.

What is the name of the pre-built model shipped by CDS that provides common types and aspects for reuse?

Choose the correct answer.
10.

What directives are available in CDS to add secondary aspects to a core domain entity?

There are two correct answers.