Free Databricks Associate-Developer-Apache-Spark Exam Questions & Answer from Training Expert VCEDumps [Q25-Q43]

0 Comments

4.3/5 - (7 votes)

Free Databricks Associate-Developer-Apache-Spark Exam Questions and Answer from Training Expert VCEDumps

Top Databricks Associate-Developer-Apache-Spark Courses Online

Q25. Which of the following describes characteristics of the Spark UI?

 
 
 
 
 

Q26. Which of the following options describes the responsibility of the executors in Spark?

 
 
 
 
 

Q27. Which of the following describes tasks?

 
 
 
 
 

Q28. Which of the following code blocks returns all unique values of column storeId in DataFrame transactionsDf?

 
 
 
 
 

Q29. Which of the elements in the labeled panels represent the operation performed for broadcast variables?
Larger image

 
 
 
 
 

Q30. 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?

 
 
 
 
 

Q31. The code block displayed below contains an error. The code block should trigger Spark to cache DataFrame transactionsDf in executor memory where available, writing to disk where insufficient executor memory is available, in a fault-tolerant way. Find the error.
Code block:
transactionsDf.persist(StorageLevel.MEMORY_AND_DISK)

 
 
 
 
 

Q32. Which of the following describes characteristics of the Spark driver?

 
 
 
 
 

Q33. The code block shown below should return a DataFrame with columns transactionsId, predError, value, and f from DataFrame transactionsDf. Choose the answer that correctly fills the blanks in the code block to accomplish this.
transactionsDf.__1__(__2__)

 
 
 
 
 

Q34. The code block displayed below contains an error. The code block should return DataFrame transactionsDf, but with the column storeId renamed to storeNumber. Find the error.
Code block:
transactionsDf.withColumn(“storeNumber”, “storeId”)

 
 
 
 
 

Q35. The code block shown below should add column transactionDateForm to DataFrame transactionsDf. The column should express the unix-format timestamps in column transactionDate as string type like Apr 26 (Sunday). Choose the answer that correctly fills the blanks in the code block to accomplish this.
transactionsDf.__1__(__2__, from_unixtime(__3__, __4__))

 
 
 
 
 

Q36. Which of the following code blocks returns a one-column DataFrame of all values in column supplier of DataFrame itemsDf that do not contain the letter X? In the DataFrame, every value should only be listed once.
Sample of DataFrame itemsDf:
1.+——+——————–+——————–+——————-+
2.|itemId| itemName| attributes| supplier|
3.+——+——————–+——————–+——————-+
4.| 1|Thick Coat for Wa…|[blue, winter, cozy]|Sports Company Inc.|
5.| 2|Elegant Outdoors …|[red, summer, fre…| YetiX|
6.| 3| Outdoors Backpack|[green, summer, t…|Sports Company Inc.|
7.+——+——————–+——————–+——————-+

 
 
 
 
 

Q37. Which of the following code blocks creates a new DataFrame with two columns season and wind_speed_ms where column season is of data type string and column wind_speed_ms is of data type double?

 
 
 
 
 
 

Q38. Which of the following statements about DAGs is correct?

 
 
 
 
 

Q39. Which of the following code blocks reads all CSV files in directory filePath into a single DataFrame, with column names defined in the CSV file headers?
Content of directory filePath:
1._SUCCESS
2._committed_2754546451699747124
3._started_2754546451699747124
4.part-00000-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-298-1-c000.csv.gz
5.part-00001-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-299-1-c000.csv.gz
6.part-00002-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-300-1-c000.csv.gz
7.part-00003-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-301-1-c000.csv.gz spark.option(“header”,True).csv(filePath)

 
 
 
 

Q40. Which of the following code blocks stores DataFrame itemsDf in executor memory and, if insufficient memory is available, serializes it and saves it to disk?

 
 
 
 
 

Q41. 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”))

 
 
 
 
 

Q42. The code block shown below should return a DataFrame with only columns from DataFrame transactionsDf for which there is a corresponding transactionId in DataFrame itemsDf. DataFrame itemsDf is very small and much smaller than DataFrame transactionsDf. The query should be executed in an optimized way. Choose the answer that correctly fills the blanks in the code block to accomplish this.
__1__.__2__(__3__, __4__, __5__)

 
 
 
 
 

Q43. The code block displayed below contains an error. The code block should return a new DataFrame that only contains rows from DataFrame transactionsDf in which the value in column predError is at least 5. Find the error.
Code block:
transactionsDf.where(“col(predError) >= 5”)

 
 
 
 
 

New (2022) Databricks Associate-Developer-Apache-Spark Exam Dumps: https://www.vcedumps.com/Associate-Developer-Apache-Spark-examcollection.html

Related Links: myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw


Leave a Reply

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

Enter the text from the image below