Apache Avro Flashcards

1
Q

What is Apache Avro?

A

Apache Avro is a data serialization system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is data always accompanied by a schema?

A

Yes. This means data can be fully processed without code generation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is an Avro schema represented?

A

An Avro schema is represented by a JSON object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give an example of an Avro schema

A
{
    "type": "record",
    "name": "User",
    "fields": [{"name": "firstName", "type": "string"}, {"name": "age", "type": "int"}]
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly