Exam Databricks-Certified-Data-Engineer-Associate Topic 1 Question 80 Discussion
Actual exam question for Databricks's Databricks-Certified-Data-Engineer-Associate exam
Question #: 80
Topic #: 1
Question #: 80
Topic #: 1
Which of the following commands will return the number of null values in the member_id column?
Suggested Answer: C Vote an answer
To return the number of null values in the member_id column, the best option is to use the count_if function, which counts the number of rows that satisfy a given condition. In this case, the condition is that the member_id column is null. The other options are either incorrect or not supported by Spark SQL. Option A will return the number of non-null values in the member_id column. Option B will not work because there is no count_null function in Spark SQL. Option D will not work because there is no null function in Spark SQL.
Option E will not work because there is no count_null function in Spark SQL. References:
* Built-in Functions - Spark SQL, Built-in Functions
* count_if - Spark SQL, Built-in Functions
Option E will not work because there is no count_null function in Spark SQL. References:
* Built-in Functions - Spark SQL, Built-in Functions
* count_if - Spark SQL, Built-in Functions
by Jo at Jul 28, 2025, 10:22 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).