Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Confluent CCDAK Exam - Topic 4 Question 74 Discussion

Posted by Helaine on Feb 08, 2025 at 07:36 PM

Compaction is enabled for a topic in Kafka by setting log.cleanup.policy=compact. What is true about log compaction?

Suggested Answer: C

Kafka's new bidirectional client compatibility introduced in 0.10.2 allows this. Read more herehttps://www.confluent.io/blog/upgrading-apache-kafka-clients-just-got-easier/


Get Premium CCDAK Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
29 comments · newest first
AN
Annabelle 10 months ago
B is definitely wrong, compaction doesn’t compress messages.
IR
Iraida 11 months ago
Wait, does that mean older messages can just disappear?
GU
Gussie 11 months ago
Log compaction is super useful for reducing storage!
RO
Roselle 11 months ago
I thought it kept the first value, not the latest?
DE
Devorah 11 months ago
D is correct! Only the latest value is kept.
SA
Sabina 12 months ago
I practiced a similar question, and I think the key point is that compaction retains the latest message per key, so D seems correct.
MY
Myra 12 months ago
I’m a bit confused about the difference between compaction and regular cleanup. Does compaction really de-duplicate messages?
SA
Sage 12 months ago
I think option D sounds right because it mentions retaining the latest value, which is what we discussed in class.
EZ
Ezekiel 1 year ago
I remember that log compaction keeps only the latest value for each key, but I'm not sure if it changes the offsets.
RE
Reynalda 1 year ago
I'm a bit confused by this question. I know log compaction is used to reduce storage, but I'm not sure about the details of how it works. I'll have to review my notes on Kafka to make sure I understand this properly before answering.
AN
Angella 1 year ago
Okay, let me see. I remember that log compaction is about reducing storage by removing duplicate messages. I think the key thing is that it keeps the latest value for each key, not the first. So I'm going to go with option D.
LO
Lonna 1 year ago
Hmm, I'm a bit unsure about this. I know log compaction has something to do with retaining only the latest value for each key, but I can't remember if it's the first or latest value that gets kept. I'll have to think this through carefully.
XE
Xenia 1 year ago
I'm pretty confident about this one. I think the answer is D - after cleanup, only one message per key is retained with the latest value.
CR
Cristina 1 year ago
Haha, I bet the exam writers are trying to trick us with these options. Kafka is all about distributed logging, so 'compaction' must be some sort of magic that makes it all work, right?
LE
Leanna 1 year ago
↳ replying to Cristina
Compaction changes the offset of messages
JA
Jackie 1 year ago
↳ replying to Cristina
D) After cleanup, only one message per key is retained with the latest value
RO
Rolande 1 year ago
↳ replying to Cristina
A) After cleanup, only one message per key is retained with the first value
JE
Jeannetta 1 year ago
This is a tricky one. I know compaction changes the offsets, so I'm not sure if option A or D is the right choice. I'll have to think about this one more.
CA
Carmelina 1 year ago
I'm a bit confused. Isn't log compaction supposed to compress the messages as well? Option B seems like it could be the answer.
OR
Orville 1 year ago
↳ replying to Carmelina
User 2: Orville is right. Log compaction actually removes duplicate keys and retains the latest value.
GI
Gilma 1 year ago
↳ replying to Carmelina
User 1: Option B is not correct. Log compaction does not compress messages.
LO
Lorrie 1 year ago
Hmm, I was thinking option C was the right answer. Doesn't Kafka de-duplicate messages based on the key hash during log compaction?
XO
Xochitl 2 years ago
I'm not sure about this. I think the answer might be A) After cleanup, only one message per key is retained with the first value. It could be more efficient to keep the initial value for each key.
TO
Torie 2 years ago
I think option D is the correct answer. Log compaction retains only the latest value for each unique key.
GR
Gracia 1 year ago
↳ replying to Torie
Compaction changes the offset of messages
JA
Jacqueline 1 year ago
↳ replying to Torie
D) After cleanup, only one message per key is retained with the latest value
VI
Virgie 1 year ago
↳ replying to Torie
A) After cleanup, only one message per key is retained with the first value
MI
Mireya 2 years ago
I agree with Lewis. It's important to retain the latest value for each key after compaction to ensure the most up-to-date information is available in the topic.
LE
Lewis 2 years ago
I think the answer is D) After cleanup, only one message per key is retained with the latest value. It makes sense to keep the most recent value for each key.
0/2000 characters

Save Cancel