nerdexam
Confluent

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

Development

Question

Which of the following is not an Avro primitive type?

Options

  • Astring
  • Blong
  • Cint
  • Ddate
  • Enull

How the community answered

(24 responses)
  • B
    8% (2)
  • C
    4% (1)
  • D
    88% (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

#Avro#primitive types#schema#serialization

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice