Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 52 Topic 6 Discussion

Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 52 Topic 6 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Exam Topic 6 Question 52 Discussion:
Question #: 52
Topic #: 6

The code block displayed below contains an error. The code block should count the number of rows that have a predError of either 3 or 6. Find the error.

Code block:

transactionsDf.filter(col('predError').in([3, 6])).count()


A.

The number of rows cannot be determined with the count() operator.


B.

Instead of filter, the select method should be used.


C.

The method used on column predError is incorrect.


D.

Instead of a list, the values need to be passed as single arguments to the in operator.


E.

Numbers 3 and 6 need to be passed as string variables.


Get Premium Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.