Q: 4
A data engineer needs to apply custom logic to identify employees with more than 5 years of
experience in array column employees in table stores. The custom logic should create a new column
exp_employees that is an array of all of the employees with more than 5 years of experience for each
row. In order to apply this custom logic at scale, the data engineer wants to use the FILTER higher-
order function.
Which of the following code blocks successfully completes this task?


Options
Discussion
Probably A, code block syntax is super clear and matches what I saw in a similar Databricks practice. Solid question format here.
C is wrong, it's definitely A for strictly more than 5 years. The lambda in A matches the requirement exactly.
Be respectful. No spam.