You have a Kafka cluster and all the topics have a replication factor of 3. One intern at your company stopped a broker, and accidentally deleted all the data of that broker on the disk. What will happen if the broker is restarted?
Suggested Answer: C
Get Premium CCDAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
Kafka Connect Sink is used to export data from Kafka to external databases and Kafka Connect Source is used to import from external databases into Kafka.
33 comments · newest first
SA
Sage
10 months ago
Nah, I don't think it will crash, that's not how Kafka operates.
KA
Kaitlyn
11 months ago
Definitely option B, that's how replication works!
UL
Ula
11 months ago
Wait, so if it becomes a leader, we lose data? That's wild!
RO
Rory
11 months ago
I think it will just replicate the missing data from leaders.
EM
Emerson
11 months ago
The broker will start without data, but it won't crash.
HA
Hana
12 months ago
I believe the broker will start without data, but I’m not clear on whether it will crash or just operate in a degraded state.
YU
Yuette
12 months ago
I'm a bit confused about this one. I feel like the broker should just start up, but I can't remember if it will lead to data loss if it becomes the leader.
PE
Pearly
12 months ago
I remember practicing a similar question, and I think the broker will start but won't be fully online until it gets the data replicated from the other brokers.
CA
Carisa
1 year ago
I think if the broker is restarted after data deletion, it won't have any data, but I'm not sure if it will crash or just start without it.
ZA
Zachary
1 year ago
Ah, I see. The broker will start, but it won't be online until it has replicated all the data it needs from the other leaders. That makes sense, given the replication factor. I'm feeling pretty confident about this one.
MA
Maia
1 year ago
Wait, I'm a bit confused. If the data was deleted, won't that cause issues when the broker comes back online? I'm not sure if it will just start replicating or if there could be some data loss.
MA
Maryann
1 year ago
Okay, let's see. If the broker's data was deleted, it should be able to recover by replicating from the other brokers, right? I'm pretty sure that's how Kafka handles this scenario.
AD
Adelle
1 year ago
Hmm, this is a tricky one. I'll need to think carefully about the Kafka replication process and how the broker handles data loss.
JO
Jose
1 year ago
I think the key here is the replication factor of 3. Since the data is replicated across multiple brokers, the broker should be able to recover the data when it restarts. But I'll need to double-check the Kafka documentation to be sure.
LE
Lewis
1 year ago
Okay, let's see. The first statement about temporarily writing and retrieving state data sounds correct. The second one about caching impacting scalability also seems true. I'm a bit unsure about the third and fourth statements, though.
BU
Buddy
1 year ago
Hmm, I'm not 100% sure about this. Let me quickly review my notes on SAML authentication to make sure I'm on the right track.
MA
Margurite
1 year ago
Oh boy, I can just picture the intern panicking and frantically hitting the restart button. 'Please don't crash, please don't crash!' Gotta keep that Kafka cluster healthy, folks!
BU
Buddy
1 year ago
C) The broker will crash
TA
Tawanna
1 year ago
B) The broker will start, and won't be online until all the data it needs to have is replicated from other leaders
SE
Sean
1 year ago
A) The broker will start, and other topics will also be deleted as the broker data on the disk got deleted
BI
Billy
1 year ago
Hmm, I'm going with B. As long as the replication factor is 3, the other brokers should have the data covered. Though I bet the intern's getting an earful for that little incident.
PA
Paulina
1 year ago
C, the broker will crash. I mean, come on, deleting all the data? That's a surefire way to make a broker go down in flames. Literally.
KI
Kimbery
1 year ago
D! The broker will start without any data, and if it becomes a leader, we'll have data loss. Ouch, that's a tough situation. Gotta be extra careful with those brokers.
NI
Nina
1 year ago
Oh no, that sounds risky. Hopefully, the replication process happens smoothly and we don't lose any important data.
CY
Cyndy
1 year ago
B) The broker will start, and won't be online until all the data it needs to have is replicated from other leaders
TA
Tamar
1 year ago
D! The broker will start without any data, and if it becomes a leader, we'll have data loss. Ouch, that's a tough situation. Gotta be extra careful with those brokers.
SA
Samira
1 year ago
I think the correct answer is B. The broker will start, but it won't be online until all the data it needs is replicated from the other leaders. Losing a broker is never good, but at least the data is safe.
CL
Clare
1 year ago
I agree. It's a good practice to have replication factor in Kafka clusters to prevent data loss in case of failures.
EL
Elden
1 year ago
Yes, that's correct. It's important to have replication factor to ensure data availability and fault tolerance.
LU
Ludivina
1 year ago
I think the correct answer is B. The broker will start, but it won't be online until all the data it needs is replicated from the other leaders. Losing a broker is never good, but at least the data is safe.
MA
Mable
1 year ago
I'm not sure, but I think the answer might be D. If the broker becomes leader without any data, there could be data loss.
RO
Ronny
2 years ago
I agree with Arletta. If the data needs to be replicated, it makes sense that the broker won't be online right away.
AR
Arletta
2 years ago
I think the answer is B. The broker won't be online until all the data is replicated from other leaders.