Bird
0
0

Given the following Kafka producer configuration snippet for Confluent Cloud, what will be the effect of setting "acks" to "all"?

medium📝 Predict Output Q4 of 15
Kafka - Kubernetes and Cloud Deployment
Given the following Kafka producer configuration snippet for Confluent Cloud, what will be the effect of setting "acks" to "all"? {"bootstrap.servers": "pkc-12345.us-west1.gcp.confluent.cloud:9092", "acks": "all"}
AProducer retries sending messages indefinitely
BProducer waits for all replicas to acknowledge before considering the message sent
CProducer waits only for the leader broker's acknowledgment
DProducer sends message without waiting for any acknowledgment
Step-by-Step Solution
Solution:
  1. Step 1: Understand the "acks" setting in Kafka producer

    "acks" controls how many brokers must confirm a message before it's considered sent.
  2. Step 2: Interpret "acks" = "all"

    Means the leader and all in-sync replicas must acknowledge the message.
  3. Final Answer:

    Producer waits for all replicas to acknowledge before considering the message sent -> Option B
  4. Quick Check:

    acks=all = wait for all replicas [OK]
Quick Trick: "acks=all" means wait for all replicas' confirmation [OK]
Common Mistakes:
MISTAKES
  • Confusing with no acknowledgment
  • Thinking it waits only for leader
  • Assuming infinite retries

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes