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: Nov 14, 2024
Add To Cart
Question 1

We have an unmanaged table “my_table”
If we run the code block down below
spark.sql(“DROP TABLE IF EXISTS my_table”)
What will happen to data in my_table ?


Answer: A
Question 2

The code block shown below should return a single-column DataFrame with a column named consonant_ct
that, for each row, shows the number of consonants in column itemName of DataFrame
itemsDf. Choose the answer that correctly fills the blanks in the code block to accomplish this.
DataFrame itemsDf:
1.+------+----------------------------------+-----------------------------+-------------------+
2.|itemId|itemName |attributes |supplier |
3.+------+----------------------------------+-----------------------------+-------------------+
4.|1 |Thick Coat for Walking in the Snow|[blue, winter, cozy] |Sports Company Inc.|
5.|2 |Elegant Outdoors Summer Dress |[red, summer, fresh, cooling]|YetiX |
6.|3 |Outdoors Backpack |[green, summer, travel] |Sports Company Inc.|
7.+------+----------------------------------+-----------------------------+-------------------+
Code block:
itemsDf.select(__1__(__2__(__3__(__4__), "a|e|i|o|u|\s", "")).__5__("consonant_ct"))


Answer: D
Question 3

Which of the following code blocks immediately removes the previously cached DataFrame transactionsDf from memory and disk? 


Answer: B
Question 4

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 5

What are the possible strategies in order to decrease garbage collection time ? 


Answer: A,B,C
Page:    1 / 84      
Total 420 Questions | Updated On: Nov 14, 2024
Add To Cart

© Copyrights DumpsCertify 2024. All Rights Reserved

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