Free Databricks Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Exam Questions

Become Databricks Certified with updated Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 exam questions and correct answers

Page:    1 / 84      
Total 420 Questions | Updated On: Feb 05, 2025
Add To Cart
Question 1

The code block shown below should return a column that indicates through boolean variables whether rows in DataFrame transactionsDf have values greater or equal to 20 and smaller or equal to 30 in column storeId and have the value 2 in column productId. Choose the answer that correctly fills the

blanks in the code block to accomplish this.
transactionsDf.__1__((__2__.__3__) __4__ (__5__))


Answer: D
Question 2

If we want to create a constant integer 1 as a new column ‘new_column’ in a dataframe df, which code block we should select ? 


Answer: A
Question 3

Given the code block down below, a database test containing nulls, identify the error

1. def my_udf(s):
2. If s is not null:
3. return len(s)
4.
5. spark.udf.register("strlen", my_udf)
6. spark.sql("select s from test where s is not null and strlen(s) > 1")


Answer: A
Question 4

How to make sure that dataframe df has 12 partitions given that df has 4 partitions ? 


Answer: A
Question 5

When joining two dataframes, if there is a need to evaluate the keys in both of the DataFrames or tables and include all rows from the right DataFrame as well as any rows
in the left DataFrame that have a match in the righ DataFrame also If there is no equivalent row in the left DataFrame, we want to instert null: which join type we should
select ? df1.join(person, joinExpression, joinType)


Answer: A
Page:    1 / 84      
Total 420 Questions | Updated On: Feb 05, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.