Queues, Kafka and event-driven interview questions

Queues vs pub/sub, Kafka partitions and consumer groups, delivery semantics, ordering, dead letters, backpressure, event sourcing and schema evolution.

6 quick facts

– interview-ready · 14 questions in this topic

– of 14 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Work queues vs publish/subscribePick the fix
  2. Background job queuesOrder the steps
  3. Kafka partitions, keys and orderingPick the fix
  4. Consumer groups and rebalancingPredict
  5. Committing offsets: at-most-once vs at-least-onceSpot the bug
  6. Keeping messages in orderPredict
  7. Dead-letter queues and poison messagesPick the fix
  8. Idempotent consumers and deduplicationPredict
  1. Backpressure when consumers fall behindPredict
  2. Event sourcingPredict
  3. Evolving event schemasPick the fix
  4. Kafka or RabbitMQ?Pick the fix
  5. Scheduled jobs that run oncePredict
  6. Monitoring consumer lagPredict

Practise this topic

Flashcards · 20

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 14 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 2 sets

Timed, out loud, then tick what you covered. Needs JavaScript.

Fix this PR · 1 review

Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Topic outline informed by System Design Primer by Donne Martin and the Zalando RESTful API Guidelines, both licensed under CC BY 4.0. Every question and answer is written by Best Latest Apps. Credits and license