Event-Driven Architecture Interview Questions: 35 Real-World Q&A from Production Manifests
Bite-sized, standalone interview questions and answers for Event-Driven Architecture. Read 5-10 per sitting. Each answer is 2-4 sentences max and stands on its own.
35 questions shown. Filter by keyword or difficulty below.
Topic: Events vs commands & core concepts (Order 0)
Q: [Beginner] What is the core difference between an event-driven system and a request/response system? [Beginner]
In request/response, services call each other synchronously — checkout waits on payment, then on shipping. In an event-driven system the orders service records that an order was placed and emits an OrderPlaced event; fulfillment, email, and analytics each notice it on their own time, so the producer never names its consumers.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Beginner] What is the difference between an event and a command? [Beginner]
A command is a request for something to happen in the future (PlaceOrder) and expects exactly one handler that may reject it. An event is a report that something did happen (OrderPlaced) and fans out to zero or many reactors, none of whom can undo it. Both travel as messages, but a command targets one owner while an event targets everyone interested.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: Why is an event described as "past tense" and "append-only"? [Expert]
An event records a fact that already happened — OrderPlaced says the order was placed, not that it should be. Because it is past-tense and append-only, it is safe to broadcast the same event to many consumers at once without any of them mutating the original.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is an aggregate and why is its id used as the partition key? [Intermediate]
An aggregate is a cluster of domain objects treated as one consistency boundary — a single Order with its line items is loaded, mutated by a command, and produces internally consistent events. Its id becomes the partition key for its event stream, so all its events live in one ordered log and ordering is preserved per partition.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is the role of the event bus and why is Kafka a good choice for it? [Intermediate]
The event bus is the transport — a broker like Kafka whose topics carry published events from producers to subscribers and handle fan-out, persistence, and delivery. Kafka is a durable, replayable log that retains events so new consumers can replay history and rebuild state, which queues typically can’t because they delete a message after consumption.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Intermediate] What does CloudEvents standardize and why does it matter? [Intermediate]
CloudEvents defines a vendor-neutral envelope — standard attributes like id, source, type, specversion, and datacontenttype wrap your payload so any broker or function can route it. By adopting type and source, a consumer can bind to events across Kafka, HTTP, and cloud queues without bespoke parsers, which prevents every team inventing its own event shape.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Topic: Event sourcing & CQRS (Order 1)
Q: [Intermediate] What is event sourcing and how is current state obtained? [Intermediate]
Event sourcing stores state as a sequence of events instead of mutating a current row — an Order’s state is the fold of every OrderPlaced, ItemAdded, and OrderShipped event in its stream. To get current state you replay the stream (or load a snapshot plus later events) and apply each event in order.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Beginner] What problem does CQRS solve by splitting write and read models? [Beginner]
CQRS (Command Query Responsibility Segregation) splits a model into a write side that handles commands and produces events, and a read side that serves queries from a denormalized view. The two sides can use different stores (Postgres for writes, Elasticsearch for reads), so read and write workloads scale and evolve independently.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Beginner] What is the write model responsible for in CQRS? [Beginner]
The write model is the command-handling side: it loads the aggregate, validates the command against current state, and emits events. It is optimized for consistency and usually backed by the event stream itself; no user-facing query ever hits the write model directly because it exists only to protect invariants and produce facts.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is a read model / projection and why is it safe to delete? [Intermediate]
A read model (or projection) is a purpose-built, denormalized store populated by consuming events — a “orders by customer” view in a fast key-value store. It is tuned for the exact queries the UI needs and is rebuilt from events, so you can delete and recreate it at any time without losing source data.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Expert] What is a snapshot and why does event sourcing need it? [Expert]
A snapshot is a periodically saved aggregate state (e.g. every 100 events) so you don’t replay the entire stream to load an entity. On load you read the latest snapshot and apply only the events after it, bounding reconstruction cost — without snapshots a long-lived aggregate’s startup time grows linearly with its event count.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Expert] What is replay and what makes it safe to reprocess a stream? [Expert]
Replay reprocesses an event stream from the beginning (or a snapshot) to rebuild state or a projection — used to fix a buggy projection or bootstrap a new read model. Because events are immutable facts, replays yield the same result as the first time, which is what makes projections disposable; the catch is that replay must be idempotent or you double-count events.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Beginner] In the order example, what is the read model and why can't the dashboard read the aggregate directly? [Beginner]
In the example the dashboard reads from a projection — a denormalized “orders by customer” view in a fast key-value store. The read model is derived from the event stream so it can be deleted and rebuilt by replaying Kafka, whereas the aggregate is the write-side consistency boundary that only emits events.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Topic: The outbox pattern & reliability (Order 2)
Q: [Beginner] What is the dual-write problem and how does the outbox fix it? [Beginner]
The naive approach writes the order to Postgres and publishes to Kafka as two separate steps; if the DB commit succeeds but the Kafka publish crashes, you have an order with no event and every reactor silently misses it. The outbox writes both the order row and an outbox row in one Postgres transaction, then a relay publishes the outbox rows to Kafka, so the two can never diverge.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Intermediate] What is the transaction outbox concretely? [Intermediate]
The transaction outbox is the concrete implementation: an outbox table co-located with the business tables, written inside the same ACID transaction as the state change. A polling publisher or a log-based CDC tool like Debezium reading the write-ahead log drains the outbox and sends each row to Kafka exactly once per row.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Beginner] Why must every event handler be idempotent? [Beginner]
At-least-once delivery means the bus may resend an event after timeouts or crashes, producing duplicates — lost events are the opposite failure, but both are real. An idempotent handler records processed event ids (or uses the event’s natural key) so a redelivered OrderPlaced doesn’t create a second shipment.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is a poison event and what is the dead-letter remedy? [Intermediate]
A malformed OrderPlaced (bad JSON, missing field) can make a consumer throw forever, stalling the whole partition as it retries the same bad message. Routing repeated failures to a dead-letter topic lets the stream keep moving while you inspect the bad message later; without one, a single poison event can stall a consumer group forever.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Expert] What is the difference between at-least-once and exactly-once delivery? [Expert]
At-least-once delivery may send an event more than once after a failure, so consumers must be idempotent. Exactly-once is stronger but in practice is “effectively once,” achieved by idempotent producers plus transactional reads/writes (Kafka’s transactions) rather than a magic guarantee — most systems choose at-least-once plus idempotency because it is simpler and nearly as safe.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What eventual-consistency confusion hits the UI and how do you handle it? [Intermediate]
A user places an order and immediately refreshes the dashboard, but it isn’t there yet because the projection hasn’t consumed the event. If the UI assumes read-your-writes you get “where did my order go?” bugs; either accept the lag, or have the write path return a token the read path can use to wait for catch-up.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Topic: Choreography vs orchestration & sagas (Order 3)
Q: [Beginner] What is choreography in event-driven systems? [Beginner]
Choreography is decentralized coordination where each service reacts to events and emits its own, with no central controller — the fulfillment service hears OrderPlaced and emits FulfillmentStarted on its own. It is loosely coupled and resilient to individual services being down, because nobody orchestrates the whole flow.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is orchestration and how does it differ from choreography? [Intermediate]
Orchestration is centralized coordination where one process (a saga orchestrator or workflow engine) tells each service what to do and in what order, tracking overall progress. Unlike choreography, a timeout or failure is handled by the orchestrator issuing a compensating command rather than hoping someone reacts, at the cost of a coupling point that must be highly available.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] When should you pick choreography versus orchestration? [Intermediate]
Use choreography (reactors) for loose coupling and resilience when no one needs to see the whole flow. Use a saga orchestrator when you need to observe the end-to-end process and handle failures with compensating actions, accepting the coupling point it introduces.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Intermediate] What is a saga and why does it replace a distributed two-phase commit? [Intermediate]
A saga is a sequence of local transactions across services where each step publishes an event, and if a later step fails, earlier steps are undone by compensating actions — charge the card, reserve inventory, and if shipping fails, refund the card. It replaces a distributed two-phase commit (which doesn’t work across autonomous services) with a series of reversible local commits.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Scenario] A fraud-check service must start reacting to orders without touching the orders service. Which coordination style fits? [Beginner]
Choreography fits — because the producer doesn’t call anyone, orders writes to its outbox and Kafka without naming fulfillment or fraud-check. You add a new reactor that subscribes to OrderPlaced and it catches up by replaying the topic, with no change to the producer.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Topic: Schema evolution, replay & consumer safety (Order 4)
Q: [Intermediate] How do you evolve an event's schema without breaking existing consumers? [Intermediate]
Schema evolution means changing an event’s structure without breaking consumers — add optional fields, never remove required ones, and version via the CloudEvents type or a schema registry. A consumer written for v1 must still read v2 events, so changes are backward-compatible by rule, and a registry can reject a bad change at publish time.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Scenario] A buggy projection computed wrong totals. How do you fix it without losing source data? [Intermediate]
Reset the projection’s offset and replay the event stream from the beginning (or a snapshot) to rebuild it. Because events are immutable facts, replaying yields the same result, so you can delete the read model and recreate it from the source-of-truth event log — the source data was never in the projection to begin with.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Tradeoff] Why is Kafka preferred over a simple queue for event-driven backends? [Expert]
Kafka is a durable, replayable log: topics retain events so new consumers can replay history and rebuild state, which is exactly what projections and the outbox relay need. A queue typically deletes a message after it’s consumed, so you can’t rebuild a read model or bootstrap a new consumer from it.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Beginner] Is event-driven architecture always better than calling services directly? [Beginner]
No. Synchronous calls give you an immediate answer and a single transaction; events give you decoupling and resilience at the cost of lag and complexity. Use events for “tell the next thing this happened,” and direct calls for “I need the result now.”
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Expert] What single takeaway should you carry into designing an event-driven system? [Expert]
Emit events from a transactionally consistent outbox, make every consumer idempotent, and design the UI for eventual consistency. Concretely: adopt CloudEvents for a portable envelope, use the outbox (DB row + relay) instead of publishing after a separate commit, treat the read model as derived and rebuildable by replay, and add a dead-letter path so one poison event can’t stall a consumer group.
[Full post →](/dev-blog/event-driven/event-driven-101/)
Topic: Correlation, versioning & production patterns (Order 5)
Q: [Intermediate] What is a correlation ID and why do you need one? [Intermediate]
A correlation ID is a unique identifier attached to the original user request that propagates through every event in the chain (OrderPlaced → FulfillmentStarted → ItemShipped). When something fails in a multi-service event flow, the correlation ID lets you trace the entire chain across services, logs, and traces — without it, debugging is guesswork. A causation ID goes further: it identifies which specific event caused another, distinguishing “this happened after that” from “this happened because of that.”
[Full post →](/dev-blog/event-driven/event-driven-101/)
Q: [Intermediate] What happens when an event consumer is slow or falls behind? [Intermediate]
The consumer accumulates consumer lag — the gap between the latest event in the partition and the consumer’s committed offset. In Kafka, the consumer keeps processing from its last committed offset; other consumers in the group are not affected (each owns its own partitions). But if the lag grows too large, the consumer may hit log retention limits (older events are deleted before they’re processed) or cause timeouts on dependent services. Solutions: scale up consumers (up to the partition count), optimize processing, or add backpressure.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Expert] How do you handle out-of-order events in a distributed system? [Expert]
Kafka guarantees ordering within a partition, not across partitions or topics. If events for the same entity end up in different partitions (different keys), they can arrive out of order. Solutions: use a consistent partition key (e.g., order ID) so all events for one entity go to the same partition; design consumers to handle out-of-order events (e.g., apply events by timestamp or version number rather than assuming order); use event versioning so consumers can skip or reorder stale events.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is event versioning and how do you handle it? [Intermediate]
When you evolve an event schema (adding a field to OrderPlaced), old consumers must still read old versions. Strategies: include a version field in the event type so consumers can branch on it; use a Schema Registry that enforces backward compatibility (adding a field with a default is safe; removing or renaming is not); or use CloudEvents with a type that includes the version (e.g., OrderPlaced.v2). The key rule: old consumers must never break when a new event version is published.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Comparison] What is the inbox pattern and how does it differ from the outbox? [Beginner]
The outbox is push-based: you write an event to an outbox table in the same transaction as your business data, then a relay (CDC/polling) publishes it to the broker. The inbox is pull-based: the consumer polls a “pending events” table in its own database, processes each event, and marks it as processed. The inbox is simpler (no CDC tooling needed) but adds polling latency; the outbox is more real-time but requires Debezium or a polling publisher. Both guarantee at-least-once delivery without two-phase commit.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
Q: [Intermediate] What is CDC (Change Data Capture) and how does it relate to event-driven architecture? [Intermediate]
CDC streams database row changes (INSERT/UPDATE/DELETE) as events by reading the database’s WAL (Write-Ahead Log) or binlog. Tools like Debezium attach to the log and publish change events to Kafka in real time. CDC is the engine behind the outbox pattern (reading the outbox table as a change stream) and enables event-driven architectures without requiring applications to explicitly publish events — the database itself becomes the event source.
[Full post →](/dev-blog/event-driven/event-driven-key-terms/)
| Last updated: July 2026 | Total Q&A: 35 across Event-Driven Architecture |