Free MuleSoft Certified Developer - Level 1 (Mule 4) Exam Braindumps (page: 29)

Page 29 of 57

Refer to the exhibit.



What is the output payload in the On Complete phase

  1. summary statistics with NO record data
  2. The records processed by the last batch step: [StepTwol, StepTwo2, StepTwo3]
  3. The records processed by all batch steps: [StepTwostepOnel, stepTwostepOne2, StepTwoStepOne3]
  4. The original payload: [1,2,31

Answer(s): A

Explanation:

This is a trcik question. On complete phase pyalod consists of summary of records processed which gives insight on which records failed or passed. Hence option 4 is correct answer
MuleSoft Documentation reference is:
https://docs.mulesoft.com/mule-runtime/4.3/batch- processing-concept#on-complete



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 ?




  1. 1. #%RAML 1.0
    2. title: Books
    3. types:
    4. Book: ABC/Examples/bookDataType.raml
    5. /books:
    6. post:
    7. body:
    8. application/json:
    9. type: Book
    10. examples:
    11. input: ABC/Examples/bookExample.raml
    12. responses:
    13. 201:
    14. body:
    15. application/json:
    16. example:
    17. message: Book added

  2. 1.#%RAML 1.0
    2.title: Books
    3.Book: !include bookDataType.raml
    4./books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: !include bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added

  3. 1.#%RAML 1.0
    2.title: Books
    3.Book: bookDataType.raml
    4./books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added

  4. 1.#%RAML 1.0
    2.title: Books
    3.Book: bookDataType.raml
    4./books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added

Answer(s): D

Explanation:

* 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(s): D


Reference:

INCLUDES section under https://medium.com/raml-api/raml-101-libraries-and- datatypes-fragments-1889b2e82c27



To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file.

Where does the configuration file's location need to be specified in the Mule application?

  1. The pom.xml file
  2. A global element
  3. The mule-art if act .json file
  4. a flow attribute

Answer(s): B

Explanation:

Correct answer is A global element.
When we create a configuration file , that file needs to added as Global Configuration file in Global element. A global element is a reusable object containing parameters that any number of elements in a flow can share. You reference a global element from Anypoint Connectors or components in your Mule application.



Refer to the exhibits.



What DataWeave expression transforms the conductorIds array to the XML output?


  1. 1. 1. trains:
    2. 2. conductorIds map ((engId, index) ->
    3. 3. train: {
    4. 4. engineerId: engId
    5. 5. }
    6. 6. )

  2. 1. 1. { trains:
    2. 2.
    3. 3. conductorIds map ((engId, index) ->
    4. 4. train: {
    5. 5. engineerId: engId
    6. 6. }
    7. 7. )
    8. 8. }

  3. 1. 1. trains:
    2. 2. {(
    3. 3. conductorIds map ((engId, index) ->
    4. 4. train: {
    5. 5. engineerId: engId
    6. 6. }
    7. 7. )
    8. 8. )}

  4. 1. 1. {( trains:
    2. 2.
    3. 3. conductorIds map ((engId, index) ->
    4. 4. train: {
    5. 5. engineerId: engId
    6. 6. }
    7. 7. )
    8. 8. )}

Answer(s): C

Explanation:

Points to remember:
* XML must have a root element.
* XML only allows one root element
* To avoid multiple root issues, you must create a root element for the XML output, whenever we transform output
* When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)} -{ } are defining the object
( ) are transforming each element in the array as a key/value pair
* The transformation to XML would fail if the above mentioned considerations were not taken into account.
* Thus the transformation script declares a root element as trains and wraps the data in "{( )}".

Whenever you see such type of question, always look out for root element followed by {( )} wrapping map.
I call this a "Wrap The Map" scenario. Hope it would help you remember !



Page 29 of 57



Post your Comments and Discuss MuleSoft MuleSoft Certified Developer - Level 1 (Mule 4) exam with other Community members:

yassmine commented on October 28, 2024
good questions
Anonymous
upvote

Honest Consumer commented on October 21, 2024
Not a bad question bank. Very close to real exam topics and questions.
UNITED STATES
upvote

Bboy commented on October 08, 2024
So far so good
FRANCE
upvote

Bboy commented on October 08, 2024
nice questions
FRANCE
upvote

Julian commented on October 07, 2024
Passed and got a 92% in this exam.
Anonymous
upvote

Parm commented on September 28, 2024
Good questions so far
UNITED STATES
upvote

Parm commented on September 28, 2024
Very good questions so far
UNITED STATES
upvote

Parminder commented on September 28, 2024
Good questions
UNITED STATES
upvote

Harish commented on September 25, 2024
Good level of questions
Anonymous
upvote

pk commented on September 06, 2024
Nice and very helpful to crack the exam
Anonymous
upvote

kp commented on September 05, 2024
VERY HELPFULL p
Anonymous
upvote

pk commented on September 05, 2024
It's useful to understand the concepts
Anonymous
upvote

Shravan commented on August 31, 2024
Nice and very helpful to crack the exam
Anonymous
upvote

Suseela commented on August 31, 2024
It's useful to understand the concepts
Anonymous
upvote

Keziah commented on August 17, 2024
Question 1 Option B is the answer
SOUTH AFRICA
upvote

An commented on August 13, 2024
eparing for the MuleSoft c
Anonymous
upvote

anga mgudu commented on August 07, 2024
VERY HELPFULL
SOUTH AFRICA
upvote

Monica Raheja commented on August 01, 2024
I am preparing for the MuleSoft certification thus going through this questions.
Anonymous
upvote

Jumla commented on June 06, 2024
What a wonderful site. Very clear very fast and easy to use. Keep up the good work team. I really really appreciate this service.
UNITED STATES
upvote

Jose commented on May 24, 2024
Just bought and downloaded the PDF premium version. So far all looks good and the content is well formatted. I also found your prices to be more reasonable than other sites like. They charge almost double the amount and the content is the same.
SPAIN
upvote

Suseela commented on April 24, 2024
I found it useful. Able to clear few doubtful areas
Anonymous
upvote

Sohant commented on April 23, 2024
I found the study package very useful. I was able to print the PDF ebook and study from that. It precisely helped me with answering the exam questions.
INDIA
upvote

Lopamudra commented on April 13, 2024
Very useful
UNITED STATES
upvote

Lopamudra commented on April 13, 2024
This is very useful.
UNITED STATES
upvote

Abhinav Sharma commented on April 12, 2024
Qno. 128 - correct ans is option C
INDIA
upvote

Niketan Rana commented on April 11, 2024
very useful for the exam
Anonymous
upvote

Abhinav Sharma commented on April 11, 2024
Question no. 68 - option B
INDIA
upvote

Akash Martule commented on April 10, 2024
Very useful Content
Anonymous
upvote

Shubham Wadhavane commented on April 08, 2024
UseFull Content
Anonymous
upvote

CSRoy commented on March 24, 2024
Very Useful
UNITED STATES
upvote

Cleo commented on March 12, 2024
hi guys, which link or site you book for the exams for the mulesoft developer level 1, please?
IRELAND
upvote

Oleag commented on March 04, 2024
The PDF is well formatted and the test engine is very fun to use. You guys have done a great job.
EUROPEAN UNION
upvote

cleo commented on February 01, 2024
what is the new for the exams
IRELAND
upvote

Shivaranjani commented on January 26, 2024
The questions are good for practice
Anonymous
upvote