Exam MCD-Level-1 Topic 6 Question 168 Discussion
Actual exam question for MuleSoft's MCD-Level-1 exam
Question #: 168
Topic #: 6
Question #: 168
Topic #: 6
Refer to the exhibits. What payload is logged at the end of the main flow?


Suggested Answer: B Vote an answer
For Each Scope
The For Each scope splits a payload into elements and processes them one by one through the components that you place in the scope. It is similar to a for-each/for loop code block in most programming languages and can process any collection, including lists and arrays. The collection can be any supported content type, such as application/json, application/java, or application/xml.
General considerations about the For Each scope:
By default, For Each tries to split the payload. If the payload is a simple Java collection, the For Each scope can split it without any configuration. The payload inside the For Each scope is each of the split elements.
Attributes within the original message are ignored because they are related to the entire message.
For Each does not modify the current payload. The output payload is the same as the input.
Mule Doc Reference : https://docs.mulesoft.com/mule-runtime/4.3/for-each-scope-concept
The For Each scope splits a payload into elements and processes them one by one through the components that you place in the scope. It is similar to a for-each/for loop code block in most programming languages and can process any collection, including lists and arrays. The collection can be any supported content type, such as application/json, application/java, or application/xml.
General considerations about the For Each scope:
By default, For Each tries to split the payload. If the payload is a simple Java collection, the For Each scope can split it without any configuration. The payload inside the For Each scope is each of the split elements.
Attributes within the original message are ignored because they are related to the entire message.
For Each does not modify the current payload. The output payload is the same as the input.
Mule Doc Reference : https://docs.mulesoft.com/mule-runtime/4.3/for-each-scope-concept
by Buck at Mar 26, 2024, 05:39 AM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).