Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - 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
1 comments · newest first
HO
Hortencia 2 hours 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