hiexam
databricks · Certified-Associate-Developer-for-Apache-Spark · Q427 · multiple_choice · topic_1

Which of the following code blocks returns the number of rows in DataFrame storesDF for each distinct combination of va…

Which of the following code blocks returns the number of rows in DataFrame storesDF for each distinct combination of values in column division and column storeCategory?
  • A.storesDF.groupBy(Seq(col(“division”), col(“storeCategory”))).count()
  • B.storesDF.groupBy(division, storeCategory).count()
  • C.storesDF.groupBy(“division”, “storeCategory”).count()
  • D.storesDF.groupBy(“division”).groupBy(“StoreCategory”).count()
  • E.storesDF.groupBy(Seq(“division”, “storeCategory”)).count()
Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.