Associate-Developer-Apache-Spark Exam 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?
  • Associate-Developer-Apache-Spark Exam Question 22

    Which of the following DataFrame operators is never classified as a wide transformation?
  • Associate-Developer-Apache-Spark Exam Question 23

    The code block displayed below contains an error. The code block should return a copy of DataFrame transactionsDf where the name of column transactionId has been changed to transactionNumber. Find the error.
    Code block:
    transactionsDf.withColumn("transactionNumber", "transactionId")
  • Associate-Developer-Apache-Spark Exam Question 24

    Which of the following code blocks sorts DataFrame transactionsDf both by column storeId in ascending and by column productId in descending order, in this priority?
  • Associate-Developer-Apache-Spark Exam Question 25

    Which of the following code blocks can be used to save DataFrame transactionsDf to memory only, recalculating partitions that do not fit in memory when they are needed?