フリー問題

SnowPro Advanced: Data Scientist のフリー問題 4 / 20 問目

問題文

An events table receives the same event more than once when a producer retries. Each copy carries the same event identifier but a different ingestion timestamp. A data scientist needs one row per event, keeping the earliest ingestion. Which approach produces that result?

選択肢

  1. Select the distinct rows of the table, which the producer writes with an ingestion timestamp, because distinct removes repeated rows and the retries are repeats.
  2. Group by the event identifier and take the count of rows, because the count tells which events were retried by the producer and those can then be excluded.
  3. Take the minimum of the ingestion timestamp for each event identifier, because the minimum identifies the earliest copy and every other column of that same row follows from it.
  4. Number the rows within each event identifier by ascending ingestion timestamp, then keep only the rows numbered one.

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

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