Bird
0
0

Which of the following is the correct syntax to set num.io.threads to 8 in Kafka's server.properties file?

easy📝 Syntax Q3 of 15
Kafka - Performance Tuning
Which of the following is the correct syntax to set num.io.threads to 8 in Kafka's server.properties file?
Anum.io.threads : 8
Bnum.io.threads=8
Cnum_io_threads=8
Dnum.io.threads = '8'
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka config syntax

    Kafka configuration files use key=value pairs without spaces around '=' and no quotes for numbers.
  2. Step 2: Validate each option

    num.io.threads=8 matches the correct syntax. The other options use colons, underscores, spaces, or quotes.
  3. Final Answer:

    num.io.threads=8 -> Option B
  4. Quick Check:

    Kafka config uses key=value syntax without quotes [OK]
Quick Trick: Use key=value format without spaces or quotes for numbers [OK]
Common Mistakes:
  • Using colons instead of equals
  • Replacing dots with underscores
  • Adding quotes around numeric values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes