Which of the following is an Avro primitive type?

Study for the CCDAK Apache Kafka Test. Use flashcards and multiple choice questions with hints and explanations for each question. Prepare thoroughly for your exam!

Multiple Choice

Which of the following is an Avro primitive type?

Explanation:
In Avro, primitive types are the built-in scalar types that encode directly in the binary format. These include null, boolean, int, long, float, double, bytes, and string. Long represents a 64-bit integer, so it is a primitive type. The other options describe complex data structures: a Record is like an object with named fields, an Array is a list of items, and a Map is a collection of key-value pairs with string keys. Example: a schema that uses a primitive long for an id would be {"type": "record", "name": "User", "fields": [{"name": "id", "type": "long"}]}.

In Avro, primitive types are the built-in scalar types that encode directly in the binary format. These include null, boolean, int, long, float, double, bytes, and string. Long represents a 64-bit integer, so it is a primitive type. The other options describe complex data structures: a Record is like an object with named fields, an Array is a list of items, and a Map is a collection of key-value pairs with string keys. Example: a schema that uses a primitive long for an id would be {"type": "record", "name": "User", "fields": [{"name": "id", "type": "long"}]}.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy