Associate-Developer-Apache-Spark Exam Question 46

Which of the following describes Spark's standalone deployment mode?
  • Associate-Developer-Apache-Spark Exam Question 47

    Which of the following code blocks uses a schema fileSchema to read a parquet file at location filePath into a DataFrame?
  • Associate-Developer-Apache-Spark Exam Question 48

    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.
  • Associate-Developer-Apache-Spark Exam Question 49

    Which of the following code blocks returns a single row from DataFrame transactionsDf?
    Full DataFrame transactionsDf:
    1.+-------------+---------+-----+-------+---------+----+
    2.|transactionId|predError|value|storeId|productId| f|
    3.+-------------+---------+-----+-------+---------+----+
    4.| 1| 3| 4| 25| 1|null|
    5.| 2| 6| 7| 2| 2|null|
    6.| 3| 3| null| 25| 3|null|
    7.| 4| null| null| 3| 2|null|
    8.| 5| null| null| null| 2|null|
    9.| 6| 3| 2| 25| 2|null|
    10.+-------------+---------+-----+-------+---------+----+
  • Associate-Developer-Apache-Spark Exam Question 50

    Which of the following code blocks selects all rows from DataFrame transactionsDf in which column productId is zero or smaller or equal to 3?