Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam MCD - Level 1 topic 1 question 101 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 101
Topic #: 1
[All MCD - Level 1 Questions]

Refer to the exhibits.


What payload and quantity are logged at the end of the main flow?

  • A. [[order1, order2, order3, order4], 14]
  • B. [[1,2,3,4], 10]
  • C. [[1,2,3,4], 14]
  • D. [order1order2order3order4, 14]
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Aaish
Highly Voted 3 years ago
C is the correct answer. updated Variable are accessible after for each scope
upvoted 15 times
...
ExamDev
Most Recent 3 months ago
Selected Answer: C
C. [[1,2,3,4], 14] - Because for-each scope DOESN'T MODIFY the payload!!!
upvoted 1 times
...
Maddy_123
1 year, 1 month ago
Answer is C [[1, 2, 3, 4], 14]
upvoted 1 times
...
HonestSeeker
1 year, 2 months ago
Logic of why C is correct: a. For Each does not modify the current payload. The output payload is the same as the input. b. The variable value keeps incrementing per iteration and is available outside the For each scope.
upvoted 1 times
...
RahulJain464
1 year, 8 months ago
Selected Answer: C
variables can be incremented in for each but payload is not affected in it
upvoted 2 times
...
BankZenith
2 years, 1 month ago
C is correct , in for each payload is not changed but var can be changed.
upvoted 2 times
...
miguel_romero
2 years, 4 months ago
C is the correct
upvoted 1 times
...
Ella_Z
2 years, 7 months ago
I tested in Mule4, C is correct Please, why for each are cant change the payload ? [ "a", "b", "c", "d" ], 14 ]
upvoted 3 times
...
awsuser1
2 years, 7 months ago
B is correct answer. INFO 2021-08-29 20:48:45,037 [[MuleRuntime].uber.01: [foreach].foreachFlow.CPU_LITE @742deb8f] [processor: foreachFlow/processors/3; event: 1e8b1a20-0902-11ec-b498-a0c589d689a8] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: [[1, 2, 3, 4], 10]
upvoted 1 times
...
almoraima
3 years ago
B is correct
upvoted 3 times
chaitind
2 years, 11 months ago
yes, i have implemented on anypoint studio .
upvoted 2 times
...
pgarciar
3 years ago
C is correct. The variable is updated in the for each.
upvoted 7 times
...
Zumo
2 years, 11 months ago
B is not Correct. C is the correct Answer. INFO 2021-05-29 16:38:38,378 [[MuleRuntime].uber.46: [batchprocessingtest].q101-flow.CPU_LITE @5014e812] [processor: q101-flow/processors/4; event: 36b4db91-c06e-11eb-bcd9-40b89a99be08] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: [[1, 2, 3, 4], 14]
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...