Apache Avro Flashcards
1
Q
What is Apache Avro?
A
Apache Avro is a data serialization system
2
Q
According to the documentation, is code generation an optional optimization?
A
Correct. Avro does not require code generation. However, for statically typed languages, code generation optimizes performance.
3
Q
Is data always accompanied by a schema?
A
Yes. This means data can be fully processed without code generation.
4
Q
How is an Avro schema represented?
A
An Avro schema is represented by a JSON object
5
Q
Give an example of an Avro schema
A
{ "type": "record", "name": "User", "fields": [{"name": "firstName", "type": "string"}, {"name": "age", "type": "int"}] }
6
Q
What is code generation?
A
Code generation is a feature that uses an Avro schema to automatically build a Java class that can be used to build Avro objects