MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 83


Refer to the exhibits.

The input array of strings is processed by the batch job that processes, filters, and aggregates the values.

What is the last message logged by the Logger component after the batch job completes processing?

Show Answer
Correct Answer: B

The batch job first filters out 'b' from the array ['a', 'b', 'c', 'd', 'e'], leaving ['a', 'c', 'd', 'e']. Then, it transforms the remaining elements to uppercase, resulting in ['A', 'C', 'D', 'E']. The batch aggregator processes the records in groups of three. The first aggregation will be ['A', 'C', 'D'], and the second aggregation will be ['E']. Since the question asks for the last message logged by the Logger component, the correct answer is ['E']. Therefore, the last message logged by the Logger component is 'E'.

Discussion

12 comments
Sign in to comment
almoraimaOption: B
Mar 28, 2021

Option B is correct

ZumoOption: B
May 29, 2021

I've written the exact Code. Following are the the two Outputs Payload:[A, C, D] Payload:[E] Question asks "What is the last message logged by the Logger component after the batch job completes processing". So it print 'E'. Correct answer would be Option B.

jpbatis
Oct 19, 2021

This question was confused.

AaishOption: A
Mar 28, 2021

A is correct

AnsealOption: A
May 25, 2021

It should be [ [A, C, D] [E] ], so option A is correct

DineshsinghalOption: A
Jun 19, 2021

A is correct

Ella_ZOption: D
Sep 4, 2021

I dont understand where is the ""b", why the answer only have a.c.d, without b ?

HonestSeeker
Jan 25, 2023

That is because the accept expression is written such that it will accept all values except 'b'

mubashirhassan2030
Nov 27, 2021

A. [ ['A', 'C', 'D'], ['E'] ] B. [ 'E' ] C. [ 'D', 'E' ] D. [ 'A', 'C', 'D', 'E' ]

miguel_romeroOption: B
Dec 15, 2021

Option B is correct

HonestSeekerOption: B
Jan 25, 2023

agree with B

HonestSeekerOption: A
Jan 25, 2023

@Moderator, please set the correct answer to this question. It is definitely not D.

rduarte22Option: B
May 30, 2023

It's B

ExamDevOption: B
Jan 22, 2024

B is correct. First will process A, B, C, and then second process C (look at the aggregator) batch step by 3 elements

ExamDev
Jan 29, 2024

Also we got expression not contains "B" so it skip the "B"