SnowPro Advanced: Data Engineer — Question 52
Which callback function is required within a JavaScript User-Defined Function (UDF) for it to execute successfully?
Answer options
- A. initialize()
- B. processRow()
- C. handler()
- D. finalize()
Correct answer: B
Explanation
The correct answer is B, as the processRow() function is specifically designed to handle the processing of each row in a UDF. The other options, while they may have their own purposes, do not fulfill the requirement for row processing within the UDF context.