[May 30, 2023] Associate-Developer-Apache-Spark Test Prep Training Practice Exam Questions Practice Tests [Q94-Q110]

Rate this post

[May 30, 2023] Associate-Developer-Apache-Spark Test Prep Training Practice Exam Questions Practice Tests

Exam Questions Answers Braindumps Associate-Developer-Apache-Spark Exam Dumps PDF Questions

NEW QUESTION 94
Which of the following code blocks removes all rows in the 6-column DataFrame transactionsDf that have missing data in at least 3 columns?

 
 
 
 
 

NEW QUESTION 95
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__)

 
 
 
 
 

NEW QUESTION 96
Which of the following code blocks prints out in how many rows the expression Inc. appears in the string-type column supplier of DataFrame itemsDf?

 
 
 
 
 

NEW QUESTION 97
The code block displayed below contains an error. The code block is intended to join DataFrame itemsDf with the larger DataFrame transactionsDf on column itemId. Find the error.
Code block:
transactionsDf.join(itemsDf, “itemId”, how=”broadcast”)

 
 
 
 
 

NEW QUESTION 98
The code block shown below should convert up to 5 rows in DataFrame transactionsDf that have the value 25 in column storeId into a Python list. Choose the answer that correctly fills the blanks in the code block to accomplish this.
Code block:
transactionsDf.__1__(__2__).__3__(__4__)

 
 
 
 
 

NEW QUESTION 99
Which of the following statements about Spark’s configuration properties is incorrect?

 
 
 
 
 

NEW QUESTION 100
The code block displayed below contains an error. The code block is intended to write DataFrame transactionsDf to disk as a parquet file in location /FileStore/transactions_split, using column storeId as key for partitioning. Find the error.
Code block:
transactionsDf.write.format(“parquet”).partitionOn(“storeId”).save(“/FileStore/transactions_split”)A.

 
 
 
 
 

NEW QUESTION 101
In which order should the code blocks shown below be run in order to create a table of all values in column attributes next to the respective values in column supplier in DataFrame itemsDf?
1. itemsDf.createOrReplaceView(“itemsDf”)
2. spark.sql(“FROM itemsDf SELECT ‘supplier’, explode(‘Attributes’)”)
3. spark.sql(“FROM itemsDf SELECT supplier, explode(attributes)”)
4. itemsDf.createOrReplaceTempView(“itemsDf”)

 
 
 
 
 

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

 
 
 
 
 

NEW QUESTION 103
Which of the following code blocks returns all unique values of column storeId in DataFrame transactionsDf?

 
 
 
 
 

NEW QUESTION 104
Which of the following describes a difference between Spark’s cluster and client execution modes?

 
 
 
 
 

NEW QUESTION 105
Which of the following code blocks performs a join in which the small DataFrame transactionsDf is sent to all executors where it is joined with DataFrame itemsDf on columns storeId and itemId, respectively?

 
 
 
 
 

NEW QUESTION 106
Which of the following code blocks creates a new 6-column DataFrame by appending the rows of the
6-column DataFrame yesterdayTransactionsDf to the rows of the 6-column DataFrame todayTransactionsDf, ignoring that both DataFrames have different column names?

 
 
 
 
 

NEW QUESTION 107
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__)

 
 
 
 
 

NEW QUESTION 108
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?

 
 
 
 
 
 

NEW QUESTION 109
Which of the following code blocks returns all unique values across all values in columns value and productId in DataFrame transactionsDf in a one-column DataFrame?

 
 
 
 
 

NEW QUESTION 110
Which of the following code blocks shows the structure of a DataFrame in a tree-like way, containing both column names and types?

 
 
 
 
 

Download Free Databricks Associate-Developer-Apache-Spark Real Exam Questions: https://www.latestcram.com/Associate-Developer-Apache-Spark-exam-cram-questions.html

leave a comment

Enter the text from the image below