Databricks Certified Associate Developer for Apache Spark 3.5-Python Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Question # 1 Topic 1 Discussion

Databricks Certified Associate Developer for Apache Spark 3.5-Python Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Question # 1 Topic 1 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Exam Topic 1 Question 1 Discussion:
Question #: 1
Topic #: 1

An engineer has a large ORC file located at/file/test_data.orcand wants to read only specific columns to reduce memory usage.

Which code fragment will select the columns, i.e.,col1,col2, during the reading process?


A.

spark.read.orc("/file/test_data.orc").filter("col1 = 'value' ").select("col2")


B.

spark.read.format("orc").select("col1", "col2").load("/file/test_data.orc")


C.

spark.read.orc("/file/test_data.orc").selected("col1", "col2")


D.

spark.read.format("orc").load("/file/test_data.orc").select("col1", "col2")


Get Premium Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 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.