Online Access Free Associate-Developer-Apache-Spark Practice Test

Exam Code:Associate-Developer-Apache-Spark
Exam Name:Databricks Certified Associate Developer for Apache Spark 3.0 Exam
Certification Provider:Databricks
Free Question Number:179
Posted:Dec 03, 2026
Rating
100%

Question 1

The code block displayed below contains an error. The code block should read the csv file located at path data/transactions.csv into DataFrame transactionsDf, using the first row as column header and casting the columns in the most appropriate type. Find the error.
First 3 rows of transactions.csv:
1.transactionId;storeId;productId;name
2.1;23;12;green grass
3.2;35;31;yellow sun
4.3;23;12;green grass
Code block:
transactionsDf = spark.read.load("data/transactions.csv", sep=";", format="csv", header=True)

Question 2

Which of the following code blocks displays the 10 rows with the smallest values of column value in DataFrame transactionsDf in a nicely formatted way?

Question 3

Which of the following code blocks returns DataFrame transactionsDf sorted in descending order by column predError, showing missing values last?

Question 4

Which of the following code blocks returns a one-column DataFrame for which every row contains an array of all integer numbers from 0 up to and including the number given in column predError of DataFrame transactionsDf, and null if predError is null?
Sample of DataFrame transactionsDf:
1.+-------------+---------+-----+-------+---------+----+
2.|transactionId|predError|value|storeId|productId| f|
3.+-------------+---------+-----+-------+---------+----+
4.| 1| 3| 4| 25| 1|null|
5.| 2| 6| 7| 2| 2|null|
6.| 3| 3| null| 25| 3|null|
7.| 4| null| null| 3| 2|null|
8.| 5| null| null| null| 2|null|
9.| 6| 3| 2| 25| 2|null|
10.+-------------+---------+-----+-------+---------+----+

Question 5

Which of the following is a characteristic of the cluster manager?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.