DATABRICKS certification preparation

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK-3-0 Practice Questions

Practice exam-style questions, check your answers, and review explanations and source references where they are available.

Exam
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK-3-0
Provider
DATABRICKS
Full set
180 questions
Last Update Check

We also provide an interactive online DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK-3.0 exam simulator to help you prepare for the exam effectively. You are welcome to explore our free DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK-3.0 sample questions below, complete with detailed answer explanations. Try our free DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK-3.0 practice quiz today to see how our question bank can boost your readiness.

The code block displayed below contains an error. The code block is intended to perform an outer join of DataFrames transactionsDf and itemsDf on columns productId and itemId, respectively. Find the error. Code block: transactionsDf.join(itemsDf, [itemsDf.itemId, transactionsDf.productId], "outer")

Answer options
Which of the following code blocks shows the structure of a DataFrame in a tree-like way, containing both column names and types?
Answer options
Which of the following code blocks reads the parquet file stored at filePath into DataFrame itemsDf, using a valid schema for the sample of itemsDf shown below? Sample of itemsDf: 1. +------+-----------------------------+-------------------+ 2. |itemId|attributes |supplier | 3. +------+-----------------------------+-------------------+ 4. |1 |[blue, winter, cozy] |Sports Company Inc.| 5. |2 |[red, summer, fresh, cooling]|YetiX | 6. |3 |[green, summer, travel] |Sports Company Inc.| 7. +------+-----------------------------+-------------------+
Answer options
Which of the following code blocks returns a 2-column DataFrame that shows the distinct values in column productId and the number of rows with that productId in DataFrame transactionsDf?
Answer options
The code block shown below should return an exact copy of DataFrame transactionsDf that does not include rows in which values in column storeId have the value 25. Choose the answer that correctly fills the blanks in the code block to accomplish this.
Answer options
The code block displayed below contains an error. The code block should configure Spark to split data in 20 parts when exchanging data between executors for joins or aggregations. Find the error. Code block: spark.conf.set(spark.sql.shuffle.partitions, 20)
Answer options
The code block displayed below contains an error. The code block is intended to return all columns of DataFrame transactionsDf except for columns predError, productId, and value. Find the error. Excerpt of DataFrame transactionsDf: transactionsDf.select(~col("predError"), ~col("productId"), ~col("value"))
Answer options
Which of the following statements about executors is correct, assuming that one can consider each of the JVMs working as executors as a pool of task execution slots?
Answer options
Which of the following code blocks returns a single-column DataFrame showing the number of words in column supplier of DataFrame itemsDf? Sample of DataFrame itemsDf: 1. +------+-----------------------------+-------------------+ 2. |itemId|attributes |supplier | 3. +------+-----------------------------+-------------------+ 4. |1 |[blue, winter, cozy] |Sports Company Inc.| 5. |2 |[red, summer, fresh, cooling]|YetiX | 6. |3 |[green, summer, travel] |Sports Company Inc.| 7. +------+-----------------------------+-------------------+
Answer options
Which of the following code blocks immediately removes the previously cached DataFrame transactionsDf from memory and disk?
Answer options
Question 1 of 10

Source context

How this practice set is maintained

Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.

Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.

Scroll to Top