Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 5 Question 27 Discussion

Posted by Beckie on Mar 18, 2025 at 07:18 AM

A company has defined two RAML fragments, Book Data Type and Book Example to be used in APIs.

What would be valid RAML to use these fragments ?

Suggested Answer: D

* RAML file contains lot of information that could be considered as 'not API-describing'. Sort of 'economy-class' members.

Equally important, but not necessarily part of the main RAML file.

* Through !includes, RAML allows us to build file-distributed API definitions, which is not only useful to encourage code reuse but also improves readability.

* We can create RAML fragments with such code and then include them in main RAML project using !include like:

types:

Book: !include bookDataType.raml and

examples:

input: !include bookExample.raml

* Additionally for

----------------------------------------------------------------------------------------------------------------------------------------

Correct Answer: D


Get Premium Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
RA
Raul 11 months ago
D is definitely wrong, it doesn't follow the RAML structure properly.
BE
Bernardine 11 months ago
I think A is correct, but B seems more flexible.
LA
Laura 11 months ago
C just doesn't seem right to me, missing the include syntax.
CO
Corrina 11 months ago
Wait, can you really use just the file names without !include?
AN
Anika 11 months ago
Looks like option B is the way to go with !include!
WI
Wilford 12 months ago
I’m leaning towards option A, but I’m not entirely confident about the syntax for including examples.
KA
Karma 12 months ago
I feel like I've seen something similar in practice questions, but I can't recall if we should use `ABC/Examples/` in the paths.
CA
Carmen 1 year ago
I think option B looks familiar because it uses `!include`, which seems to be the right way to include fragments.
KE
Kenny 1 year ago
I remember we discussed using `!include` for referencing external RAML files, but I'm not sure if it's necessary here.
SH
Shannon 1 year ago
I'm not entirely sure about this one. The different options seem similar, and I'll need to closely compare the syntax and structure to determine the right approach. I'll make sure to read through the question and code carefully.
BA
Barabara 1 year ago
Okay, I think I've got this. The key is to properly reference the RAML fragments using the !include directive. Option B looks like the most complete and accurate solution.
ER
Erinn 1 year ago
Hmm, I'm a bit confused by the different ways the RAML fragments are being referenced. I'll need to double-check the RAML syntax to make sure I understand the correct way to include and use these types and examples.
CA
Caren 1 year ago
This looks like a straightforward RAML question. I'll carefully review the code snippets and the options to determine the correct approach.
0/2000 characters

Save Cancel