Bird
0
0

Which Kafka producer configuration property controls the compression type used for messages?

easy📝 Conceptual Q2 of 15
Kafka - Performance Tuning
Which Kafka producer configuration property controls the compression type used for messages?
Alinger.ms
Bbatch.size
Ccompression.type
Dacks
Step-by-Step Solution
Solution:
  1. Step 1: Identify compression property

    The property compression.type specifies the compression codec (e.g., none, gzip, snappy, lz4, zstd).
  2. Step 2: Confirm other properties

    batch.size controls batch size, linger.ms controls delay, and acks controls acknowledgment level, none relate to compression type.
  3. Final Answer:

    compression.type -> Option C
  4. Quick Check:

    Compression codec = compression.type [OK]
Quick Trick: Use compression.type to set message compression [OK]
Common Mistakes:
MISTAKES
  • Confusing batch.size with compression.type
  • Using linger.ms for compression
  • Setting acks for compression

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes