mcd-level-1 question 74 discussion

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

Question 74

Refer to the exhibits.


The Set Payload transformer In the addltem subflow 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 subflow to add a router cable with the price of 100 to the order?

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

B


User Votes:
A
50%
B
50%
C
50%
D 2 votes
50%
Discussions
0 / 1000
galibakravan
7 months, 1 week ago

Correct Answer is D