Associate-Developer-Apache-Spark Exam Question 56

Which of the following describes characteristics of the Dataset API?
  • Associate-Developer-Apache-Spark Exam Question 57

    Which of the following describes Spark's way of managing memory?
  • Associate-Developer-Apache-Spark Exam Question 58

    The code block displayed below contains an error. The code block should produce a DataFrame with color as the only column and three rows with color values of red, blue, and green, respectively.
    Find the error.
    Code block:
    1.spark.createDataFrame([("red",), ("blue",), ("green",)], "color")
    Instead of calling spark.createDataFrame, just DataFrame should be called.
  • Associate-Developer-Apache-Spark Exam Question 59

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

    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?