Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 132/ 160
07. Streaming & Real-Time Data Engineering

Managed Streaming Platforms (AWS Kinesis, Google Pub/Sub, Confluent Cloud, Redpanda)

Compare managed brokers and Kafka-compatible alternatives for ops burden vs control.

IntermediateKinesis · Pub/Sub · Confluent3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Key order, ack, replay, and protocol. Next, shard/partition, bytes/s, and retention. Finally, lag, scaling, DR, egress, and support.

Think of it like…

Each managed service is a transport network with compatible-looking parcel labels; route order, truck count, receipts, and pricing depend on the specific carrier contract.

Where you’ve seen it

Kinesis uses shards and partition keys, Pub/Sub subscriptions and ack deadlines without Kafka offset API, Confluent supplies managed Kafka/Kafka Connect, and Redpanda exposes Kafka protocol with a different C++ broker/storage architecture.

Words you’ll hear

Kinesis
AWS's managed sharded data stream and consumer model for records, retention, and serverless/on-demand or provisioned throughput.
Pub/Sub
Google's topic/subscription messaging service with at-least-once delivery and acknowledgement semantics.
Confluent
A managed Kafka service with broker, schema, connectors, governance, and Kafka API operations.
Operational boundary
A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions. Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

Visual diagram

Loading interactive diagram

Theory & deep dive

Kinesis: the working mechanism

Kinesis and Pub/Sub offer cloud-native managed streams; Confluent Cloud operates Kafka control/data planes; Redpanda offers Kafka-compatible broker behavior and storage/operations trade-offs.

Key order, ack, replay, and protocol. Shard/partition, bytes/s, and retention, then private endpoint, IAM, secrets, and schema; this exposes the state governed by Confluent.

Managed Streaming Platforms in one concrete design

Kinesis uses shards and partition keys, Pub/Sub subscriptions and ack deadlines without Kafka offset API, Confluent supplies managed Kafka/Kafka Connect, and Redpanda exposes Kafka protocol with a different C++ broker/storage architecture.

Key takeaway: Kinesis and Pub/Sub offer cloud-native managed streams

Managed Streaming Platforms: failure mode and production response

A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.

Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload. Track Ordering unit as "partition key/shard/order key, never global by default", and make Retention limit visible to the dataset owner.

Key takeaway: Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

How it works, step by step

Step 1 of 4
Kinesis

1. Map semantics

Key order, ack, replay, and protocol. Kinesis and Pub/Sub offer cloud-native managed streams; Confluent Cloud operates Kafka control/data planes; Redpanda offers Kafka-compatible broker behavior and storage/operations trade-offs.

key order, ack, replay, and protocol
Key numbers at this step
Ordering unit
partition key/shard/order key, never global by default
Pub/Sub
Google's topic/subscription messaging service with at-least-once delivery and acknowledgement semantics.

When to use it & trade-offs

What it is

Kinesis and Pub/Sub offer cloud-native managed streams; Confluent Cloud operates Kafka control/data planes; Redpanda offers Kafka-compatible broker behavior and storage/operations trade-offs. Kinesis uses shards and partition keys, Pub/Sub subscriptions and ack deadlines without Kafka offset API, Confluent supplies managed Kafka/Kafka Connect, and Redpanda exposes Kafka protocol with a different C++ broker/storage architecture.

Why it matters: A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions. Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

When to reach for it

  • Compare managed brokers and Kafka-compatible alternatives for ops burden vs control.
  • Choose Kinesis because it provides this capability: AWS's managed sharded data stream and consumer model for records, retention, and serverless/on-demand or provisioned throughput.
  • Keep evidence for Ordering unit at "partition key/shard/order key, never global by default" so the last production stage-Operate/cost - lag, scaling, DR, egress, and support-remains testable.

When to avoid or be careful

  • A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.
  • Do not conflate Pub/Sub with Kinesis. The second concept contributes different behavior: Google's topic/subscription messaging service with at-least-once delivery and acknowledgement semantics.
  • Release only after this guardrail is in place: Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

Kinesis / Pub/Sub / Confluent - roles, limits, and operating cost

Kinesis
Best for: AWS's managed sharded data stream and consumer model for records, retention, and serverless/on-demand or provisioned throughput.

Strengths: AWS's managed sharded data stream and consumer model for records, retention, and serverless/on-demand or provisioned throughput. Kinesis and Pub/Sub offer cloud-native managed streams.

Watch out: A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.

Pub/Sub
Best for: Google's topic/subscription messaging service with at-least-once delivery and acknowledgement semantics.

Strengths: Google's topic/subscription messaging service with at-least-once delivery and acknowledgement semantics. In this workflow it supports: Secure/connect - private endpoint, IAM, secrets, and schema.

Watch out: The operating cost is real: replay horizon before records expire.

Confluent
Best for: A managed Kafka service with broker, schema, connectors, governance, and Kafka API operations.

Strengths: A managed Kafka service with broker, schema, connectors, governance, and Kafka API operations. Its output can be checked with Egress/throughput price.

Watch out: Operating guardrail: Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Kinesis, and how would Ordering unit reveal it?”
  • “Why is Pub/Sub distinct from this behavior: a managed Kafka service with broker, schema, connectors, governance, and Kafka API operations?”
  • Production clue: A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.
  • Design probe: Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

Benchmarks & rules of thumb

Ordering unit -
partition key/shard/order key, never global by default
Retention limit -
replay horizon before records expire
Egress/throughput price -
cross-region/client/network cost alongside compute/stream units

Common mistakes & follow-ups

Common interview mistakes

  • A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.
  • Reporting success from a job exit code without checking Ordering unit and Retention limit.
  • Treating this example as complete without replay, rollback, or access boundaries: Kinesis uses shards and partition keys, Pub/Sub subscriptions and ack deadlines without Kafka offset API, Confluent supplies managed Kafka/Kafka Connect, and Redpanda exposes Kafka protocol with a different C++ broker/storage architecture.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: AWS's managed sharded data stream and consumer model for records, retention, and serverless/on-demand or provisioned throughput.
  • What does the recovery plan do when this occurs? A Kafka client can connect to a compatible broker but still rely on unsupported ISR/transactions/config semantics, while cloud-native ordering, retention, partition/shard cost, and egress differ materially from Kafka assumptions.
  • When is Kinesis insufficient for Retention limit, and what does adding Pub/Sub cost in Ordering unit?
Interview tip: Lead with the data path and failure boundary: Kinesis and Pub/Sub offer cloud-native managed streams; Confluent Cloud operates Kafka control/data planes; Redpanda offers Kafka-compatible broker behavior and storage/operations trade-offs. Then make the answer operational: Benchmark protocol/API compatibility, ordering key limits, shard/partition scale, retention, serverless/provisioned cost, private networking, IAM, schema/support, and disaster recovery for the exact workload.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Managed Streaming Platforms (AWS Kinesis, Google Pub/Sub, Confluent Cloud, Redpanda) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Kafka Streams & ksqlDB for Lightweight Stream Transformations
Next topic
Real-Time OLAP Databases (Apache Druid, Apache Pinot, ClickHouse)