Exam MCD - Level 1 All QuestionsBrowse all questions from this 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?

    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
AlandtOption: B

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

FundsAndInvestmentsOption: B

Is B not correct?

Alandt

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

minu21Option: A

Correct answer is A. I coded it and tried.

AlandtOption: 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 }

Alandt

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.