🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Kafka: all 10 questions

Quiz: Kafka · Question 8 of 10

Why does the JSON deserializer have spring.json.trusted.packages=com.skills101.orders?

Why does the JSON deserializer have spring.json.trusted.packages=com.skills101.orders?

  1. A.So it only creates objects of classes from known packages, a security rule
  2. B.To make deserialisation faster
  3. C.Because Kafka needs a package name for topics
  4. D.To compress the messages
Answer & explanation

Correct answer: So it only creates objects of classes from known packages, a security rule

Trusting every package (*) lets a message create unexpected classes.

Can you get the rest right without peeking?

Take the timed Quiz: Kafka quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →