Question 11

Which of the following describes the characteristics of accumulators?
  • Question 12

    Which of the following code blocks returns a new DataFrame in which column attributes of DataFrame itemsDf is renamed to feature0 and column supplier to feature1?
  • Question 13

    The code block displayed below contains an error. The code block should write DataFrame transactionsDf as a parquet file to location filePath after partitioning it on column storeId. Find the error.
    Code block:
    transactionsDf.write.partitionOn("storeId").parquet(filePath)
  • Question 14

    Which of the following code blocks returns a 2-column DataFrame that shows the distinct values in column productId and the number of rows with that productId in DataFrame transactionsDf?
  • Question 15

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