Bird
0
0

Which interface must you implement to create a custom serializer in Kafka?

easy📝 Syntax Q12 of 15
Kafka - Advanced Stream Processing

Which interface must you implement to create a custom serializer in Kafka?

ASerializer<T>
BConsumer<T>
CProducer<T>
DDeserializer<T>
Step-by-Step Solution
Solution:
  1. Step 1: Recall serializer interface

    Kafka requires implementing Serializer<T> to convert objects to bytes.
  2. Step 2: Match interface to purpose

    Deserializer<T> is for reading bytes back, not serialization.
  3. Final Answer:

    Serializer<T> -> Option A
  4. Quick Check:

    Serializer interface = Serializer<T> [OK]
Quick Trick: Serializer interface handles object to bytes [OK]
Common Mistakes:
  • Choosing Deserializer for serialization
  • Confusing Producer/Consumer with SerDes
  • Using wrong generic interface

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes