Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 152

Refer to the exhibits. Northern Trail Outfitters is developing a Mule application to process web client POST requests with payloads containing order information, including the user name and purchased items. The Shipping connector returns a shipping address for the input payload's user name. The Shipping connector's Shipping Address operation is configured with a target named shippingAddress.

The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the Shipping Address operation's response.

What is a straightforward way to properly configure the Set Payload transformer with the required data?

Input payload:

    Correct Answer: B

    To properly configure the Set Payload transformer with the required data, one should assign 'items' to 'payload.items' to preserve the items from the original payload and 'shippingInfo' to 'vars.shippingAddress' to include the response from the Shipping Address operation. This ensures that the original order items and the shipping address are correctly merged in the final payload.

Discussion
AlandtOption: B

The input payload includes a user and an items array. The Shipping connector is configured with a target named shippingAddress, which indicates that its response will be stored in a variable of that name. Which means: { "items": payload.items, "shippingInfo": vars.shippingAddress } Answer B.