Bird
0
0

You want to auto-scale Kafka partitions based on message lag. Which strategy best fits this goal?

hard📝 Application Q15 of 15
Kafka - Kubernetes and Cloud Deployment
You want to auto-scale Kafka partitions based on message lag. Which strategy best fits this goal?
AAdd brokers randomly without monitoring lag
BIncrease partitions when lag exceeds threshold; decrease when lag is low
CScale partitions only based on CPU usage
DManually change partitions daily regardless of lag
Step-by-Step Solution
Solution:
  1. Step 1: Understand message lag as scaling metric

    Message lag indicates how many messages are waiting to be processed, a key metric for scaling partitions.
  2. Step 2: Choose strategy matching lag metric

    Increasing partitions when lag is high and decreasing when low optimizes processing capacity.
  3. Final Answer:

    Increase partitions when lag exceeds threshold; decrease when lag is low -> Option B
  4. Quick Check:

    Lag-based scaling = adjust partitions by lag [OK]
Quick Trick: Scale partitions based on lag, not random or CPU only [OK]
Common Mistakes:
MISTAKES
  • Ignoring lag metric importance
  • Scaling without monitoring
  • Manual scaling instead of auto

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes