A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a produce request with acks=all is sent to broker?
Suggested Answer: A
Get Premium CCDAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
With this configuration, a single in-sync replica becomes read-only. Produce request will receive NotEnoughReplicasException.
13 comments · newest first
PA
Paola
11 months ago
C is interesting, but I don't think it blocks like that.
LA
Lashawn
12 months ago
B seems off, acks=all needs more replicas.
SH
Shawn
12 months ago
Wait, is it really that strict? Sounds harsh!
ST
Stacey
12 months ago
Totally agree with A, can't have enough replicas!
LO
Louvenia
1 year ago
A is correct, NotEnoughReplicasException will be returned.
KE
Kenneth
1 year ago
I'm pretty certain that if two replicas are unavailable, we can't satisfy the min.insync.replicas requirement, so it should return an exception.
LA
Lavonna
1 year ago
I feel like the request would still go through with just one in-sync replica, but that doesn't seem right with acks=all.
VI
Vicki
1 year ago
I remember practicing a similar question, and I believe the produce request would block until one of the replicas is back online.
TR
Tracey
1 year ago
I think if two replicas are down, we might get a NotEnoughReplicasException, but I'm not entirely sure.
SH
Shaquana
1 year ago
I'm not totally sure about this one. The options seem a bit confusing to me.
ST
Steffanie
1 year ago
This looks like a straightforward multiple-choice question. I'll carefully read through the options and the provided information to determine the correct answer.
JO
Johanna
1 year ago
Okay, let's see. Scoping to the image names makes sense, as that would target the specific containers we want. Namespaces could work too, but that might be too broad. I'll go with option A.
LA
Lai
1 year ago
Hmm, I'm a bit confused by this question. There are a few different options presented, and I'm not sure which one would be the most appropriate. I'll need to think through the implications of each approach carefully.