nerdexam
Confluent

CCDAK · Question #159

You create a topic named 'IoT-Data' with 10 partitions and replication factor of three. A producer application is producing messages with 1 mb size. The messages need to be compressed using Gzip…

The correct answer is A. Compression type will be stored in batch attributes. B. By default, compression is the producer's responsibility. The compression type is stored in the batch attributes, allowing consumers to know how to decompress the data. By default, message compression is handled by the producer, and the broker stores the messages in their compressed form.

Developing Kafka Producers

Question

You create a topic named 'IoT-Data' with 10 partitions and replication factor of three. A producer application is producing messages with 1 mb size. The messages need to be compressed using Gzip compression. Which two statements are true in this scenario? (Choose two.)

Options

  • ACompression type will be stored in batch attributes.
  • BBy default, compression is the producer's responsibility.
  • CThe message is already compressed so it will not be serialized.
  • DAll compressed messages will be stored in the same topic partition.

How the community answered

(42 responses)
  • A
    79% (33)
  • C
    7% (3)
  • D
    14% (6)

Explanation

The compression type is stored in the batch attributes, allowing consumers to know how to decompress the data. By default, message compression is handled by the producer, and the broker stores the messages in their compressed form.

Topics

#compression#Gzip#batch attributes#producer responsibility

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice