フリー問題

Databricks Certified Data Analyst Associate のフリー問題 9 / 20 問目

問題文

An analyst is asked to produce the number of distinct visitor identifiers in a table of 4 billion page views. The figure appears on an exploratory dashboard and a small error is acceptable if the query returns quickly. Which approach matches the requirement?

選択肢

  1. Count all rows and divide by the average number of page views per visitor taken from last month's report.
  2. Sample one percent of the rows at random, count the distinct identifiers in the sample, and multiply the result by one hundred.
  3. Use approx_count_distinct on the identifier column for that figure, which trades a small bounded error for far less work than an exact distinct count.
  4. Use COUNT with DISTINCT on the identifier column, because exact answers are always preferable and the optimizer will approximate it automatically when the table is large.

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

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