You have a cluster with a topic t1 that already has uncompressed messages. A new Producer starts sending messages to t1 with compression enabled.
Which condition would allow this?
Suggested Answer: A
Get Premium CCAAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
Kafka allows mixed compression formats within the same topic and even the same partition. Each message batch includes metadata indicating whether and how it is compressed. Therefore, a new producer can send compressed messages to a topic that already contains uncompressed messages, as long as it is configured with a compression codec (e.g., compression.type=gzip, snappy, etc.).
21 comments · newest first
JE
Jerry
2 days ago
But B is valid too. Mixing formats is risky.
MA
Maryanne
7 days ago
A seems right. New Producer settings matter.
AR
Arlene
12 days ago
I disagree, B makes sense. Uncompressed messages can't mix.
RO
Rozella
17 days ago
I think it's A. Compression can be configured.
AV
Avery
23 days ago
A is the best choice. Compression is flexible.
MI
Micah
28 days ago
D doesn't apply. Batching isn't the issue.
RE
Reuben
1 month ago
C is irrelevant. Encryption isn't needed here.
CL
Clarence
1 month ago
I lean towards A. Compression should work fine.
MA
Maile
1 month ago
But B is valid too. Mixing formats is risky.
IZ
Izetta
2 months ago
A makes sense. New Producer can use compression.
SK
Skye
2 months ago
I disagree, it's B. Uncompressed messages can't mix.
IS
Isaac
2 months ago
I think it's A. Compression can be configured.
JO
Joye
2 months ago
D sounds like a weird requirement, not sure about that one.
JA
Jaleesa
2 months ago
I think C is irrelevant here, encryption isn't the issue.
SC
Scarlet
2 months ago
Wait, B can't be true, right? That seems off.
CL
Clay
3 months ago
Totally agree with A! Compression can be enabled anytime.
JU
Justine
3 months ago
A) If the new Producer is configured to use compression.
ER
Erasmo
3 months ago
I don't recall encryption being a factor in this scenario, so I think C is unlikely. A seems more plausible to me.
AN
Annice
3 months ago
I feel like I saw a similar question about compression and batching in our practice tests. Maybe D is the right choice?
AR
Arleen
3 months ago
I'm not really sure, but I remember something about how Kafka handles mixed message formats. Could it be B?
BO
Bong
4 months ago
I think the answer might be A, since the new Producer can just be configured to use compression regardless of the existing messages.