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

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 130 discussion

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

Refer to the exhibits. The Batch Job scope contains two Batch Step scopes with different accept expressions.

Input payload:



The input payload is passed to the Batch Job scope.

After the entire payload is processed by the Batch Job Scope, what messages have been logged by the Logger components?

  • A. { “amount”: 500 }
    { “amount”: 101 }
    { “step2amount”: 1000 }
    { “step2amount”: 500 }
  • B. { “amount”: 500 }
    { “amount”: 101 }
    { “step2amount”: 1000 }
    { “step2amount”: 400 }
  • C. { “amount”: 500 }
    { “amount”: 601 }
    { “step2amount”: 1000 }
    { “step2amount”: 500 }
    { “step2amount”: 601 }
  • D. { “amount”: 500 }
    { “amount”: 101 }
    { “step2amount”: 1000 }
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
minu21
6 months, 3 weeks ago
Selected Answer: A
Correct answer is A. I coded it and tried.
upvoted 1 times
...
Alandt
9 months, 3 weeks ago
Selected Answer: B
B is the correct answer, please ignore my other comment.
upvoted 2 times
...
Alandt
9 months, 3 weeks ago
Selected Answer: A
ChatGPT: The correct answer, after considering the batch steps and the operations within each, is: A. { “amount”: 500 } { “amount”: 101 } { “step2amount”: 1000 } { “step2amount”: 500 }
upvoted 1 times
Alandt
9 months, 3 weeks ago
Sorry, this answer is not correct. Correct answer is B. Because the last step2amount evaluates the 400 and does not add anything to it, hence logging 400.
upvoted 1 times
Krunchysoup
2 months, 1 week ago
No it doesn't as it evaluates after step one. It would be A
upvoted 1 times
...
...
...
FundsAndInvestments
11 months, 1 week ago
Is B not correct?
upvoted 2 times
Alandt
9 months, 3 weeks ago
Yes, B is correct. Because if you evaluate every step, you will come to the conclusion that B is the answer.
upvoted 1 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 ...