MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 7


What is the value of the stepVar variable after the processing of records in a Batch Job?

Show Answer
Correct Answer: C

In a Batch Job, variables created during the batch steps are scoped to those steps and do not persist through to the On Complete phase. Therefore, the value of such a variable, stepVar in this case, would be null after the batch steps have completed, as it is not preserved or accessible in the On Complete phase.

Discussion

2 comments
Sign in to comment
jpbatis
May 24, 2021

This question would be better viewed in anypoint studio

sirious09Option: C
Aug 16, 2022

Any variables created during batch Steps are record-specific, they are not available outside batch steps - in On Complete Phase, so var stepVar = null