Bird
0
0

Given the following Kafka configuration snippet:

medium📝 Predict Output Q13 of 15
Kafka - Performance Tuning
Given the following Kafka configuration snippet:
num.io.threads=4
log.segment.bytes=10485760
log.dirs=/kafka-logs

What is the effect of setting num.io.threads to 4?
AKafka limits the number of topics to 4.
BKafka will create 4 log directories.
CKafka will use 4 threads to handle disk I/O operations, improving parallelism.
DKafka will retain logs for 4 hours.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of num.io.threads

    This setting controls how many threads Kafka uses for disk input/output operations, allowing parallel reads and writes.
  2. Step 2: Check other options for relevance

    Options about limiting topics, creating directories, or retention hours do not relate to num.io.threads.
  3. Final Answer:

    Kafka will use 4 threads to handle disk I/O operations, improving parallelism. -> Option C
  4. Quick Check:

    num.io.threads = 4 threads for disk I/O [OK]
Quick Trick: num.io.threads sets disk I/O thread count, not topics or retention [OK]
Common Mistakes:
MISTAKES
  • Confusing thread count with topic count
  • Assuming it controls log retention
  • Thinking it creates multiple directories

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes