Step 1: Understand the meaning of num.network.threads
This setting controls how many threads the broker uses to handle network requests from clients.
Step 2: Match options with setting
Number of threads handling network requests correctly states it controls threads handling network requests; others describe unrelated functions.
Final Answer:
Number of threads handling network requests -> Option D
Quick Check:
num.network.threads = network threads count [OK]
Hint: network.threads means threads for network requests [OK]
Common Mistakes:
Confusing network threads with IO threads
Thinking it controls log writing threads
Mixing client connections with message processing
4. You see this broker config line:
log.retention.hours 168
What is wrong with this line?
medium
A. Missing equal sign between key and value
B. Invalid value; hours must be a string
C. Key name is incorrect; should be log.retention.ms
D. No error; this line is correct
Solution
Step 1: Check syntax for key-value pairs
Kafka config requires an equal sign (=) between key and value, not just a space.
Step 2: Identify the error in the line
The line uses a space instead of '=', so it is a syntax error.
Final Answer:
Missing equal sign between key and value -> Option A
Quick Check:
Config lines need key=value format [OK]
Hint: Config lines must have key=value, not space [OK]
Common Mistakes:
Assuming space works as separator
Confusing retention hours with milliseconds
Thinking the key name is wrong
5. You want to configure a Kafka broker to store logs in two directories: /data/kafka1 and /data/kafka2. Which is the correct way to set log.dirs in the broker config?
hard
A. log.dirs=/data/kafka1;/data/kafka2
B. log.dirs=/data/kafka1,/data/kafka2
C. log.dirs=/data/kafka1 /data/kafka2
D. log.dirs=[/data/kafka1,/data/kafka2]
Solution
Step 1: Understand log.dirs format
Kafka expects multiple directories separated by commas without spaces or brackets.
Step 2: Evaluate each option
log.dirs=/data/kafka1,/data/kafka2 uses commas correctly; B uses semicolon (wrong), C uses space (wrong), D uses brackets (wrong).
Final Answer:
log.dirs=/data/kafka1,/data/kafka2 -> Option B
Quick Check:
Multiple dirs separated by commas [OK]
Hint: Separate multiple log dirs with commas, no spaces [OK]
Common Mistakes:
Using semicolons or spaces instead of commas
Adding brackets around paths
Including spaces between paths
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.