Question 31
Choose 1
Refer to the exhibit.

What is the output payload in the On Complete phase

What is the output payload in the On Complete phase
Correct answer:
A. summary statistics with NO record data
Explanation:
Let's break down the Batch Job behavior:
Batch Job Phases:
Process Records: Processes individual records through Batch Steps (Batch_Step1, Batch_Step2)
On Complete: Runs once after all records have been processed, providing summary statistics about the batch execution (e.g., total records, successful records, failed records)
Key Behavior:
The On Complete phase does not receive the processed record data as payload.
Its payload contains batch job summary information (metadata about the batch execution), not the actual records.
Record data flows only within the Process Records phase through Batch Steps.
What Happens in This Flow:
Scheduler sets payload to [1, 2, 3]
Batch Job starts
Process Records phase:
Each record (1, 2, 3) goes through Batch_Step1 → transforms to "StepOne" ++ payload
Then through Batch_Step2 → transforms to "StepTwo" ++ "StepOne" ++ original
Output would be ["StepTwoStepOne1", "StepTwoStepOne2", "StepTwoStepOne3"]
On Complete phase:
Receives batch summary, NOT the processed records
Contains stats like total records processed, successful count, failed count
Key Concepts Tested:
Batch Job phases (Process Records vs. On Complete)
Data flow in Batch Jobs
Understanding that On Complete receives summary metadata, not record data
Reference:
MuleSoft Documentation: Batch Job On Complete phase provides statistics about batch execution, not the processed records.
Analysis of Other Options:
B. The records processed by the last batch step: Incorrect. This would be the output of the Process Records phase, not the On Complete phase.
C. The records processed by all batch steps: Incorrect. This is also Process Records phase data, not On Complete phase data.
D. The original payload: Incorrect. Neither phase receives the original payload; Process Records receives individual records, On Complete receives summary stats.
Let's break down the Batch Job behavior:
Batch Job Phases:
Process Records: Processes individual records through Batch Steps (Batch_Step1, Batch_Step2)
On Complete: Runs once after all records have been processed, providing summary statistics about the batch execution (e.g., total records, successful records, failed records)
Key Behavior:
The On Complete phase does not receive the processed record data as payload.
Its payload contains batch job summary information (metadata about the batch execution), not the actual records.
Record data flows only within the Process Records phase through Batch Steps.
What Happens in This Flow:
Scheduler sets payload to [1, 2, 3]
Batch Job starts
Process Records phase:
Each record (1, 2, 3) goes through Batch_Step1 → transforms to "StepOne" ++ payload
Then through Batch_Step2 → transforms to "StepTwo" ++ "StepOne" ++ original
Output would be ["StepTwoStepOne1", "StepTwoStepOne2", "StepTwoStepOne3"]
On Complete phase:
Receives batch summary, NOT the processed records
Contains stats like total records processed, successful count, failed count
Key Concepts Tested:
Batch Job phases (Process Records vs. On Complete)
Data flow in Batch Jobs
Understanding that On Complete receives summary metadata, not record data
Reference:
MuleSoft Documentation: Batch Job On Complete phase provides statistics about batch execution, not the processed records.
Analysis of Other Options:
B. The records processed by the last batch step: Incorrect. This would be the output of the Process Records phase, not the On Complete phase.
C. The records processed by all batch steps: Incorrect. This is also Process Records phase data, not On Complete phase data.
D. The original payload: Incorrect. Neither phase receives the original payload; Process Records receives individual records, On Complete receives summary stats.





