フリー問題

NVIDIA-Certified Professional: Accelerated Data Science のフリー問題 9 / 20 問目

問題文

A 4 billion row table has a numeric column whose values are integers from 0 to 200. It is currently stored as a 64-bit integer. Which type choice is appropriate, and what is the effect?

選択肢

  1. A 32-bit float, because floating-point types are the most flexible and a 32-bit float still represents every integer in this range exactly while leaving room for fractional values if the definition of the column ever changes to allow them in a future version of the upstream system.
  2. Keep the 64-bit integer, because narrowing an integer column changes the results of aggregations over 4 billion rows, and the running sum would overflow the narrower type partway through the aggregation.
  3. A categorical type, since the column has only 201 distinct values.
  4. An 8-bit integer covers the observed range and cuts the column's footprint to an eighth, provided the ingestion contract guarantees the range will not widen.

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

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