FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

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

Exam Question MS-21-062 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS13.8.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 exhibits! What payload and quantity are logged at the end of the main flow?


Answer

A) [[1,2,3,4], 14]
B) [[order1, order2, order3, order4], 14]
C) [[1,2,3,4], 10]
D) [order1, order2]

The correct answer to this question is

Explanation

By default, For Each tries to split the payload. For Each does not modify the current payload which means that the output payload is the same as the input. Unlike the payload, the variable is going to be changed in the For Each loop, which leads us to the answer A.

Register now