CCDAK · Question #86
Which of the following is not an Avro primitive type?
The correct answer is D. date. date is not an Avro primitive type - it is a logical type that annotates the primitive int (representing days since the Unix epoch). Avro's eight primitive types are: null, boolean, int, long, float, double, bytes, and string. Options A (string), B (long), C (int), and E (null) a
Question
Which of the following is not an Avro primitive type?
Options
- Astring
- Blong
- Cint
- Ddate
- Enull
How the community answered
(24 responses)- B8% (2)
- C4% (1)
- D88% (21)
Explanation
date is not an Avro primitive type - it is a logical type that annotates the primitive int (representing days since the Unix epoch). Avro's eight primitive types are: null, boolean, int, long, float, double, bytes, and string.
Options A (string), B (long), C (int), and E (null) are all genuine Avro primitives and therefore incorrect choices for "not a primitive type."
Memory tip: Think of Avro's primitives as the types a basic programming language would have built-in - numbers, text, and nothing (null). Anything involving a concept like a date, time, or UUID is a logical type layered on top, not a primitive itself.
Topics
Community Discussion
No community discussion yet for this question.