BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Data Engineer Associate Exam - Topic 6 Question 71 Discussion

Posted by Colton on Oct 12, 2026 at 04:51 PM

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?

Suggested Answer: A

Option A is the correct answer because it uses the FILTER higher-order function correctly to filter out employees with more than 5 years of experience from the array column ''employees''. It applies a lambda functioni -> i.years_exp > 5that checks if the years of experience of each employee in the array is greater than 5. If this condition is met, the employee is included in the new array column ''exp_employees''.

: The use of higher-order functions like FILTER can be referenced from Databricks documentation onHigher-Order Functions.


Get Premium Databricks Certified Data Engineer Associate Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
9 comments · newest first
PA
Paola 4 days ago
I thought FILTER only works on single columns, not arrays?
LA
Lavonda 9 days ago
Definitely going with Option A!
DE
Deane 15 days ago
Wait, are we sure about that?
VA
Vanna 20 days ago
I think Option B is the right choice.
CA
Cathrine 25 days ago
Option C looks solid for this.
EL
Elliot 1 month ago
I feel like I’ve seen a question like this before, and I want to say it was about using a lambda function with FILTER.
TO
Tora 1 month ago
I think Option B looks familiar, but I’m not entirely confident it handles the array correctly.
MA
Macy 1 month ago
This question seems similar to one we did on filtering data frames, but I can't recall the exact syntax for arrays.
HO
Hortencia 2 months ago
I remember we practiced using the FILTER function in class, but I'm not sure if it applies directly to arrays like this.
0/2000 characters

Save Cancel