フリー問題

Databricks Certified Associate Developer for Apache Spark のフリー問題 13 / 20 問目

問題文

A dashboard shows the number of distinct visitors per hour over 50 million rows and refreshes every hour. A 2 percent error in the distinct count is acceptable and the refresh must be fast. Which aggregate fits, and why?

選択肢

  1. A collect of the visitor column on the driver followed by a Python set.
  2. A plain row count with a filter, because distinct visitors can be derived from the row count.
  3. The exact distinct count, because the engine keeps a sorted structure of the values that makes the exact answer as cheap as the approximation once the data is large enough for the sorting cost to be amortized across the partitions.
  4. The approximate distinct count, because a probabilistic sketch avoids the cost of collecting every distinct value.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。