MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 94


Refer to the exhibits.

A company has defined this Book data type and Book example to be used in APIs.

What is valid RAML for an API that uses this Book data type and Book example?

A.

B.

C.

D.

Show Answer
Correct Answer:

In RAML, using the 'types' keyword is appropriate to define the data type. To include external files, such as data types and examples, the '!include' directive is used. Therefore, the correct RAML for an API that uses the provided Book data type and Book example is: 'D'. The RAML code in option D specifies the type using the '!include BookDataType.raml' and includes the example using the '!include BookExample.raml' within the 'examples' section.

Discussion

8 comments
Sign in to comment
pgarciar
Mar 29, 2021

D is correct

Aaish
Mar 29, 2021

D is correct

nilan84
May 28, 2021

D is correct

miguel_romero
Dec 15, 2021

D is correct

MrAnjani
Dec 25, 2021

To reference any module, Types: . . . Keyword is required and the file should be referenced with the !include . . . keyword

MrAnjani
Dec 25, 2021

So, D is correct Answer

frediepulgoso
Mar 7, 2022

D is correct

Gaurav_9412
Jul 15, 2023

D is correct

ExamDev
Jan 22, 2024

D is correct