CompTIA Data+ (DA0-001) — Question 276

A data engineer is creating a database field to capture whether a customer likes vanilla ice cream. Which of the following data types is the best to capture this information?

Answer options

Correct answer: B

Explanation

The best data type to represent a simple yes or no answer, such as whether a customer likes vanilla ice cream, is Boolean. An Integer, Categorical, or Numeric type are not appropriate as they do not specifically capture binary states effectively.