Bird
0
0

Which of the following is the correct way to disable auto-commit in Kafka consumer configuration?

easy📝 Syntax Q12 of 15
Kafka - Consumers
Which of the following is the correct way to disable auto-commit in Kafka consumer configuration?
A"enable.auto.commit" : false
B"auto.commit.enable" : false
C"auto.commit" : "disable"
D"enable.auto.commit" : true
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct config key

    The correct Kafka consumer config key to control auto-commit is "enable.auto.commit".
  2. Step 2: Identify the correct value to disable auto-commit

    Setting "enable.auto.commit" to false disables auto-commit.
  3. Final Answer:

    "enable.auto.commit" : false -> Option A
  4. Quick Check:

    Disable auto-commit = enable.auto.commit = false [OK]
Quick Trick: Use "enable.auto.commit" = false to disable auto-commit [OK]
Common Mistakes:
  • Using wrong config key names
  • Setting true instead of false to disable
  • Using string values instead of boolean

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes