All Questions
Kafka easy

When a Producer sends a message with a specific 'Key', how does Kafka interpret this for shard distribution?

  1. A The key is used to encrypt the message body using AES-256.
  2. B Affinity: Kafka hashes the key to ensure that all messages with that same key are consistently routed to the same partition, guaranteeing their sequence order.
  3. C The key is discarded immediately after the message is received to save disk space.
  4. D The key forces the message to be duplicated across every single partition in the topic.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions