Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA DA0-001 Exam - Topic 5 Question 69 Discussion

Actual exam question for CompTIA's DA0-001 exam
Question #: 69
Topic #: 5
[All DA0-001 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Comprehensive and Detailed In-Depth

When designing a database field to capture a binary preference, such as whether a customer likes vanilla ice cream, the most appropriate data type is:

Option B:Boolean

Rationale:A Boolean data type is used to represent binary values, typically TRUE or FALSE. In this context, it efficiently captures whether a customer likes (TRUE) or does not like (FALSE) vanilla ice cream.

Option A:Integer

Rationale:While integers represent whole numbers, using them to denote binary choices (e.g., 1 for 'likes' and 0 for 'dislikes') is less intuitive and can lead to ambiguity without proper context.

Option C:Categorical

Rationale:Categorical data types are used for fields that can take on one of a limited set of values, representing different categories. While 'likes' and 'dislikes' could be categories, a Boolean is more efficient for binary choices.

Option D:Numeric

Rationale:Numeric data types encompass both integers and floating-point numbers. Using a numeric type for a binary preference is unnecessary and could lead to data integrity issues.


partners.comptia.org

Contribute your Thoughts:

0/2000 characters
Socorro
18 days ago
Categorical could work too, right?
upvoted 0 times
...
Aileen
23 days ago
Definitely a Boolean, yes or no!
upvoted 0 times
...
Jesusita
1 month ago
I’m a bit confused; I thought numeric could work too, but it seems like it’s not really applicable here.
upvoted 0 times
...
Alex
2 months ago
I feel like I’ve seen a similar question before, and I think it was about using Boolean for true/false answers.
upvoted 0 times
...
Andra
2 months ago
I'm not entirely sure, but I remember something about categorical types being used for preferences. Could that be an option?
upvoted 0 times
...
Peggy
2 months ago
I think the Boolean type makes the most sense here since it's just a yes or no question about liking vanilla ice cream.
upvoted 0 times
...

Save Cancel