Bird
Raised Fist0

Which configuration property is required to specify the Kafka brokers for a Java consumer client?

easy🧠 Conceptual Q2 of Q15
Kafka - with Java/Python

Which configuration property is required to specify the Kafka brokers for a Java consumer client?

Akey.deserializer
Bbootstrap.servers
Cgroup.id
Dauto.offset.reset
Step-by-Step Solution
Solution:
  1. Step 1: Identify the property for Kafka broker addresses

    The bootstrap.servers property tells the consumer where to find Kafka brokers to connect to.
  2. Step 2: Understand other properties

    group.id identifies the consumer group, key.deserializer defines how to decode keys, and auto.offset.reset controls offset behavior.
  3. Final Answer:

    bootstrap.servers -> Option B
  4. Quick Check:

    Broker address config = bootstrap.servers = C [OK]
Quick Trick: Use bootstrap.servers to set Kafka broker addresses [OK]
Common Mistakes:
MISTAKES
  • Confusing group.id with broker address
  • Using deserializer properties for broker config
  • Missing bootstrap.servers causes connection failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes