Bird
0
0

Given the following Kafka configuration snippet:

medium📝 Predict Output Q4 of 15
Kafka - Performance Tuning
Given the following Kafka configuration snippet:
num.io.threads=2
log.segment.bytes=10485760

What is the expected effect on disk I/O performance?
ATwo network threads and 10 MB max message size
BUnlimited disk I/O threads with 10 GB max segment size
CLimited parallel disk I/O with 10 MB max segment size
DFour disk I/O threads and 1 MB max segment size
Step-by-Step Solution
Solution:
  1. Step 1: Interpret num.io.threads value

    Setting num.io.threads=2 means Kafka uses 2 threads for disk I/O, limiting parallelism.
  2. Step 2: Interpret log.segment.bytes value

    log.segment.bytes=10485760 equals 10,485,760 bytes, which is 10 MB max segment size.
  3. Final Answer:

    Limited parallel disk I/O with 10 MB max segment size -> Option C
  4. Quick Check:

    num.io.threads=2 and log.segment.bytes=10MB [OK]
Quick Trick: Check byte values carefully for size units [OK]
Common Mistakes:
  • Confusing MB with GB
  • Mixing network threads with io threads
  • Assuming default values instead of given

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes