Insights into Company
← Apache Kafka

Production Scenarios

Understand the idea. Compare it. Explain it. Test yourself.

Question 1 of 10

How should consumers handle duplicates?

Solution and explanation

  • Be idempotent and record unique event IDs before side effects.
Practice explaining this
Question 2 of 10

Which Kafka metrics matter?

Solution and explanation

  • Lag, throughput, latency, ISR changes, offline partitions, resources and client errors.
Practice explaining this
Question 3 of 10

What is an under-replicated partition?

Solution and explanation

  • A partition with fewer in-sync replicas than its replication factor.
Practice explaining this
Question 4 of 10

How do you secure Kafka?

Solution and explanation

  • Use TLS, SASL, ACLs, private networking, secret management and audit logs.
Practice explaining this
Question 5 of 10

Design an e-commerce Kafka flow.

Solution and explanation

Commit the order and outbox, publish orders.created, then consume it independently downstream.
Practice explaining this
Question 6 of 10

Does Kafka deduct money?

Solution and explanation

  • No; payment or core banking performs transactions and Kafka distributes events.
Practice explaining this
Question 7 of 10

Design a bank-transfer Kafka flow.

Solution and explanation

  • The ledger and outbox commit atomically; Kafka feeds notification, fraud and audit.
Practice explaining this
Question 8 of 10

Which system owns financial balances?

Solution and explanation

  • The authoritative transactional ledger, never Kafka alone.
Practice explaining this
Question 9 of 10

How do you combine durability settings?

Solution and explanation

  • Use zone-aware replication, acks=all, suitable min ISR and safe elections.
Practice explaining this
Question 10 of 10

What makes production Kafka reliable?

Solution and explanation

  • Idempotency, retries, DLTs, security, observability, capacity tests and recovery procedures.
Practice explaining this