QUESTION, ANSWER, EXPLANATION
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.
RELATED ARTICLES
OTHER ARTICLES
OLDER ARTICLES
LATEST FORUM UPDATES
APIAmeeth, Thursday, 1.9.2022 / 21:23
Jay-Catalyst, Tuesday, 2.11.2021 / 10:48
Matteo, Friday, 3.7.2020 / 16:30
Matteo, Friday, 3.7.2020 / 16:29
Matteo, Friday, 3.7.2020 / 16:28
Caio S Cavalcante, Friday, 22.5.2020 / 16:59
Edo Schatz, Thursday, 21.5.2020 / 13:50
Edo Schatz, Thursday, 21.5.2020 / 11:29
Edo Schatz, Wednesday, 20.5.2020 / 18:18
Edo Schatz, Monday, 18.5.2020 / 16:33
NEW ARTICLES
POPULAR ARTICLES