New Year Sale 2026! 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

Actual exam question for Salesforce's Salesforce Certified MuleSoft Developer (Mule-Dev-201) exam
Question #: 27
Topic #: 5
[All Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions]

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 ?

Show Suggested Answer Hide Answer
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


Contribute your Thoughts:

0/2000 characters
Raul
2 months ago
D is definitely wrong, it doesn't follow the RAML structure properly.
upvoted 0 times
...
Bernardine
3 months ago
I think A is correct, but B seems more flexible.
upvoted 0 times
...
Laura
3 months ago
C just doesn't seem right to me, missing the include syntax.
upvoted 0 times
...
Corrina
3 months ago
Wait, can you really use just the file names without !include?
upvoted 0 times
...
Anika
3 months ago
Looks like option B is the way to go with !include!
upvoted 0 times
...
Wilford
3 months ago
I’m leaning towards option A, but I’m not entirely confident about the syntax for including examples.
upvoted 0 times
...
Karma
4 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.
upvoted 0 times
...
Carmen
4 months ago
I think option B looks familiar because it uses `!include`, which seems to be the right way to include fragments.
upvoted 0 times
...
Kenny
4 months ago
I remember we discussed using `!include` for referencing external RAML files, but I'm not sure if it's necessary here.
upvoted 0 times
...
Shannon
4 months 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.
upvoted 0 times
...
Barabara
4 months 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.
upvoted 0 times
...
Erinn
5 months 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.
upvoted 0 times
...
Caren
5 months ago
This looks like a straightforward RAML question. I'll carefully review the code snippets and the options to determine the correct approach.
upvoted 0 times
...

Save Cancel