🎙 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 5 of 10

When is a direct REST call better than publishing an event?

When is a direct REST call better than publishing an event?

  1. A.When the caller needs an immediate answer to continue (e.g. the course's fee)
  2. B.When ten services must react
  3. C.When the receiver is often down
  4. D.When events should be replayed later
Answer & explanation

Correct answer: When the caller needs an immediate answer to continue (e.g. the course's fee)

order-service calls course-api for the fee, but announces "order placed" as an event.

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 →