nerdexam
Confluent

CCAAK · Question #84

An Apache Kafka® cluster has a topic named T1 with a mix of compressed and uncompressed messages. Which condition allows this?

The correct answer is B. Each producer is configured to set compression as required. Compression is controlled by the producer, not by the topic or broker. Producers can independently choose whether to compress messages, allowing a single topic to contain both compressed and uncompressed data.

Apache Kafka Fundamentals

Question

An Apache Kafka® cluster has a topic named T1 with a mix of compressed and uncompressed messages. Which condition allows this?

Options

  • ATopic T1 is configured at the cluster level to choose the appropriate level of compression for each
  • BEach producer is configured to set compression as required.
  • CA mix of compressed and uncompressed messages are not allowed within the same topic.
  • DEach partition of topic T1 is configured to either allow compressed or uncompressed messages.

How the community answered

(55 responses)
  • A
    9% (5)
  • B
    84% (46)
  • C
    2% (1)
  • D
    5% (3)

Explanation

Compression is controlled by the producer, not by the topic or broker. Producers can independently choose whether to compress messages, allowing a single topic to contain both compressed and uncompressed data.

Topics

#message compression#producer configuration#topic compression#mixed messages

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice