Bird
0
0

Which of the following is the correct way to specify the bootstrap server address in a Confluent Cloud Kafka client configuration?

easy📝 Syntax Q3 of 15
Kafka - Kubernetes and Cloud Deployment
Which of the following is the correct way to specify the bootstrap server address in a Confluent Cloud Kafka client configuration?
A"bootstrap.servers": "pkc-12345.us-west1.gcp.confluent.cloud:9092"
B"bootstrap.servers": "localhost:2181"
C"bootstrap.servers": "127.0.0.1:9092"
D"bootstrap.servers": "kafka://broker:9092"
Step-by-Step Solution
Solution:
  1. Step 1: Understand bootstrap server format for Confluent Cloud

    Confluent Cloud provides a fully qualified domain name with port 9092 for Kafka brokers.
  2. Step 2: Identify the correct option

    "bootstrap.servers": "pkc-12345.us-west1.gcp.confluent.cloud:9092" matches the expected format with a cloud domain and port 9092.
  3. Final Answer:

    "bootstrap.servers": "pkc-12345.us-west1.gcp.confluent.cloud:9092" -> Option A
  4. Quick Check:

    Bootstrap server = Cloud domain with port 9092 [OK]
Quick Trick: Use cloud domain and port 9092 for Confluent Cloud [OK]
Common Mistakes:
  • Using localhost or 127.0.0.1
  • Using ZooKeeper port 2181
  • Adding protocol prefix like kafka://

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes