CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 74: Databricks Certified Associate Developer for Apache Spark

Which of the following describes the difference between DataFrame.repartition(n) and DataFrame.coalesce(n)?

Nội dung câu hỏi

Which of the following describes the difference between DataFrame.repartition(n) and DataFrame.coalesce(n)?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. DataFrame.repartition(n) will split a DataFrame into n number of new partitions with data distributed evenly.DataFrame.coalesce(n) will more quickly combine the existing partitions of a DataFrame but might result in an uneven distribution of data across the new partitions. — đáp án hiện tại
  2. B. While the results are similar, DataFrame.repartition(n) will be more efficient than DataFrame.coalesce(n) because it can partition a Data Frame by the column.
  3. C. DataFrame.repartition(n) will split a Data Frame into any number of new partitions while minimizing shuffling.DataFrame.coalesce(n) will split a DataFrame onto any number of new partitions utilizing a full shuffle.
  4. D. While the results are similar, DataFrame.repartition(n) will be less efficient than DataFrame.coalesce(n) because it can partition a Data Frame by the column.
  5. E. DataFrame.repartition(n) will combine the existing partitions of a DataFrame but may result in an uneven distribution of data across the new partitions.DataFrame.coalesce(n) will more slowly split a Data Frame into n number of new partitions with data distributed evenly.

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề