MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 130


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?

Show Answer
Correct Answer: B

The Batch Job processes each record by evaluating the conditions in the accept expressions. For the 'large' and 'medium' sized items, the amounts are 1000 and 400 respectively. These amounts satisfy the conditions of the 'greaterThan200' accept expression, which logs the 'step2amount' as 1000 and 400. For the 'small' sized item with an amount of 1, it satisfies the 'lessThan500' accept expression, and 100 is added to it, making it 101 and is logged as such. Therefore, the correct answer is B, as it correctly reflects the results of the Batch Job processing.

Discussion

4 comments
Sign in to comment
FundsAndInvestmentsOption: B
Dec 19, 2023

Is B not correct?

Alandt
Feb 6, 2024

Yes, B is correct. Because if you evaluate every step, you will come to the conclusion that B is the answer.

AlandtOption: B
Feb 6, 2024

B is the correct answer, please ignore my other comment.

AlandtOption: A
Feb 5, 2024

ChatGPT: The correct answer, after considering the batch steps and the operations within each, is: A. { “amount”: 500 } { “amount”: 101 } { “step2amount”: 1000 } { “step2amount”: 500 }

Alandt
Feb 6, 2024

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.

minu21Option: A
May 2, 2024

Correct answer is A. I coded it and tried.