Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 12 Topic 2 Discussion

Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 12 Topic 2 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Exam Topic 2 Question 12 Discussion:
Question #: 12
Topic #: 2

The code block shown below should return the number of columns in the CSV file stored at location filePath. From the CSV file, only lines should be read that do not start with a # character. Choose

the answer that correctly fills the blanks in the code block to accomplish this.

Code block:

__1__(__2__.__3__.csv(filePath, __4__).__5__)


A.

1. size

2. spark

3. read()

4. escape='#'

5. columns


B.

1. DataFrame

2. spark

3. read()

4. escape='#'

5. shape[0]


C.

1. len

2. pyspark

3. DataFrameReader

4. comment='#'

5. columns


D.

1. size

2. pyspark

3. DataFrameReader

4. comment='#'

5. columns


E.

1. len

2. spark

3. read

4. comment='#'

5. columns


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.