nerdexam
Confluent

CCDAK · Question #112

In Avro, adding an element to an enum without a default is a __ schema evolution

The correct answer is A. breaking. Since Confluent 5.4.0, Avro 1.9.1 is used. Since default value was added to enum complex type , the schema resolution changed from: (<1.9.1) if both are enums: if the writer's symbol is not present in the reader's enum, then an error is signalled. (>=1.9.1) if both are enums…

Development

Question

In Avro, adding an element to an enum without a default is a __ schema evolution

Options

  • Abreaking
  • Bfull
  • Cbackward
  • Dforward

How the community answered

(56 responses)
  • A
    93% (52)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Explanation

Since Confluent 5.4.0, Avro 1.9.1 is used. Since default value was added to enum complex type , the schema resolution changed from: (<1.9.1) if both are enums:** if the writer's symbol is not present in the reader's enum, then an error is signalled. **(>=1.9.1) if both are enums: if the writer's symbol is not present in the reader's enum and the reader has a default value, then that value is used, otherwise an error is signalled.

Topics

#Avro schema evolution#enum breaking change#schema compatibility#Schema Registry

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice