Bird
0
0

What will happen if you try to produce a message to a non-existent topic in Confluent Cloud with auto topic creation disabled?

medium📝 Predict Output Q5 of 15
Kafka - Kubernetes and Cloud Deployment
What will happen if you try to produce a message to a non-existent topic in Confluent Cloud with auto topic creation disabled?
AThe producer will receive an error indicating the topic does not exist
BThe topic will be automatically created and the message sent
CThe message will be silently dropped
DThe producer will retry indefinitely until the topic exists
Step-by-Step Solution
Solution:
  1. Step 1: Understand auto topic creation setting

    If auto topic creation is disabled, Kafka will not create topics automatically.
  2. Step 2: Predict behavior when topic is missing

    Producer will get an error because the topic does not exist and cannot be created.
  3. Final Answer:

    The producer will receive an error indicating the topic does not exist -> Option A
  4. Quick Check:

    Auto topic creation off = error on missing topic [OK]
Quick Trick: No auto topic creation means error on missing topic [OK]
Common Mistakes:
  • Assuming topic auto-creates
  • Thinking messages drop silently
  • Expecting infinite retries

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes