4.7/5 - (3 votes)

New 2023 Associate-Developer-Apache-Spark exam questions Welcome to download the newest TrainingQuiz Associate-Developer-Apache-Spark PDF dumps (179 Q&As)

P.S. Free 2023 Databricks Certification Associate-Developer-Apache-Spark dumps are available on Google Drive shared by TrainingQuiz

NEW QUESTION 10
The code block shown below should read all files with the file ending .png in directory path into Spark.
Choose the answer that correctly fills the blanks in the code block to accomplish this.
spark.__1__.__2__(__3__).option(__4__, “*.png”).__5__(path)

 
 
 
 
 

NEW QUESTION 11
Which of the following code blocks generally causes a great amount of network traffic?

 
 
 
 
 

NEW QUESTION 12
The code block shown below should return only the average prediction error (column predError) of a random subset, without replacement, of approximately 15% of rows in DataFrame transactionsDf. Choose the answer that correctly fills the blanks in the code block to accomplish this.
transactionsDf.__1__(__2__, __3__).__4__(avg(‘predError’))

 
 
 
 
 

NEW QUESTION 13
Which of the following is a characteristic of the cluster manager?

 
 
 
 
 

NEW QUESTION 14
Which of the following describes Spark’s Adaptive Query Execution?

 
 
 
 
 

NEW QUESTION 15
The code block displayed below contains an error. The code block should display the schema of DataFrame transactionsDf. Find the error.
Code block:
transactionsDf.rdd.printSchema

 
 
 
 
 

NEW QUESTION 16
The code block shown below should add a column itemNameBetweenSeparators to DataFrame itemsDf. The column should contain arrays of maximum 4 strings. The arrays should be composed of the values in column itemsDf which are separated at – or whitespace characters. Choose the answer that correctly fills the blanks in the code block to accomplish this.
Sample of DataFrame itemsDf:
1.+——+———————————-+——————-+
2.|itemId|itemName |supplier |
3.+——+———————————-+——————-+
4.|1 |Thick Coat for Walking in the Snow|Sports Company Inc.|
5.|2 |Elegant Outdoors Summer Dress |YetiX |
6.|3 |Outdoors Backpack |Sports Company Inc.|
7.+——+———————————-+——————-+
Code block:
itemsDf.__1__(__2__, __3__(__4__, “[s-]”, __5__))

 
 
 
 
 

NEW QUESTION 17
Which of the following describes Spark actions?

 
 
 
 
 

NEW QUESTION 18
The code block displayed below contains one or more errors. The code block should load parquet files at location filePath into a DataFrame, only loading those files that have been modified before
2029-03-20 05:44:46. Spark should enforce a schema according to the schema shown below. Find the error.
Schema:
1.root
2. |– itemId: integer (nullable = true)
3. |– attributes: array (nullable = true)
4. | |– element: string (containsNull = true)
5. |– supplier: string (nullable = true)
Code block:
1.schema = StructType([
2. StructType(“itemId”, IntegerType(), True),
3. StructType(“attributes”, ArrayType(StringType(), True), True),
4. StructType(“supplier”, StringType(), True)
5.])
6.
7.spark.read.options(“modifiedBefore”, “2029-03-20T05:44:46”).schema(schema).load(filePath)

 
 
 
 
 

NEW QUESTION 19
Which of the following code blocks performs an inner join between DataFrame itemsDf and DataFrame transactionsDf, using columns itemId and transactionId as join keys, respectively?

 
 
 
 
 

NEW QUESTION 20
Which of the elements in the labeled panels represent the operation performed for broadcast variables?
Larger image

 
 
 
 
 

NEW QUESTION 21
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 22
Which of the following code blocks returns approximately 1000 rows, some of them potentially being duplicates, from the 2000-row DataFrame transactionsDf that only has unique rows?

 
 
 
 
 

NEW QUESTION 23
Which of the following describes the characteristics of accumulators?

 
 
 
 
 

NEW QUESTION 24
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 25
Which of the following code blocks shuffles DataFrame transactionsDf, which has 8 partitions, so that it has
10 partitions?

 
 
 
 
 

NEW QUESTION 26
Which of the following code blocks returns a copy of DataFrame itemsDf where the column supplier has been renamed to manufacturer?

 
 
 
 
 

NEW QUESTION 27
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 QUESTION 28
Which of the following code blocks returns a DataFrame showing the mean value of column “value” of DataFrame transactionsDf, grouped by its column storeId?

 
 
 
 
 

NEW QUESTION 29
Which of the following DataFrame operators is never classified as a wide transformation?

 
 
 
 
 

NEW QUESTION 30
Which of the following describes the conversion of a computational query into an execution plan in Spark?

 
 
 
 
 

NEW QUESTION 31
Which of the following code blocks returns a DataFrame that is an inner join of DataFrame itemsDf and DataFrame transactionsDf, on columns itemId and productId, respectively and in which every itemId just appears once?

 
 
 
 
 

Associate-Developer-Apache-Spark exam questions from TrainingQuiz dumps: https://www.trainingquiz.com/Associate-Developer-Apache-Spark-practice-quiz.html (179 Q&As)

Related Links: myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt

Leave a Reply

Please sing in to post your comment or singup if you don't have account.
Enter the text from the image below