mcd-level-1 question 91 discussion

View all MuleSoft Certified Developer - Level 1 (Mule 4) Exam here
back to mulesoft forum

Question 91

Refer to the exhibits. The Set Payload transformer in the addltem child flow uses DataWeave to
create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use
the addltem child flow to add a router call with the price of 100 to the order?

  • A. lookup( "addltern", { price: "100", item: "router", itemType: "cable" } )
  • B. addltem( { payload: { price: "100", item: "router", itemType: "cable" > } )
  • C. lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
  • D. addltem( { price: "100", item: "router", itemType: "cable" } )
Answer:

C


Explanation:

User Votes:
A 2 votes
50%
B
50%
C
50%
D
50%
Discussions
0 / 1000
sachudixit
1 year, 5 months ago

A is correct

galibakravan (replied to sachudixit)
7 months, 1 week ago

Correct. A is the right answer