FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

Exam Question MS-21-037 for MuleSoft Certified Developer (MCD) - Level 1

Exam Question MS-21-037 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS12.4.2021

This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.

Question

Refer to the exhibit! What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?

Answer

A) lookup createCustomerObject ("Alice", "Green")
B) createCustomerObject ( { first: "Alice", last: "Green" } )
C) lookup "createCustomerObject", { first: "Alice", last: "Green" }
D) createCustomerObject ( "Alice", "Green")

The correct answer to this question is C.

Explanation

The question can be translated into the following: "How to call a flow from a flow and send parameters to it?"

By using a function lookup with the name of the target flow, it can be reached from any component of the app.

To send it some parameters, an object with properties and values needs to be send, in order for the target flow to receive key/value pairs of data.

Register now