← 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?
- A.So it only creates objects of classes from known packages, a security rule
- B.To make deserialisation faster
- C.Because Kafka needs a package name for topics
- 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 →