0
0
Kafkadevops~5 mins

Auto-scaling strategies in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is auto-scaling in the context of Kafka?
Auto-scaling in Kafka means automatically adjusting the number of Kafka brokers or partitions based on workload to maintain performance and resource efficiency.
Click to reveal answer
beginner
Name two common metrics used to trigger Kafka auto-scaling.
Common metrics include CPU usage of brokers and consumer lag (the delay in processing messages). These help decide when to add or remove resources.
Click to reveal answer
intermediate
Explain horizontal scaling vs vertical scaling in Kafka auto-scaling.
Horizontal scaling means adding or removing Kafka brokers (machines). Vertical scaling means increasing or decreasing resources (CPU, memory) on existing brokers.
Click to reveal answer
advanced
What is a common challenge when auto-scaling Kafka partitions?
Rebalancing partitions can cause temporary performance drops and data movement, so scaling partitions must be done carefully to avoid disruption.
Click to reveal answer
intermediate
How does Kubernetes help with Kafka auto-scaling?
Kubernetes can manage Kafka brokers as pods and use Horizontal Pod Autoscaler to add or remove broker pods based on resource usage or custom metrics.
Click to reveal answer
Which metric is commonly used to decide when to auto-scale Kafka brokers?
AMessage content
BDisk size
CCPU usage
DNumber of topics
What does horizontal scaling mean in Kafka auto-scaling?
AAdding more CPU to existing brokers
BReducing number of partitions
CIncreasing message size
DAdding more brokers to the cluster
What is a risk when increasing Kafka partitions during auto-scaling?
AData loss
BTemporary performance drop due to rebalancing
CMessages get duplicated
DTopics get deleted
Which tool can help automate Kafka broker scaling in container environments?
AKubernetes Horizontal Pod Autoscaler
BDocker Compose
CAnsible
DTerraform
Consumer lag in Kafka is used to measure:
ADelay in consumers processing messages
BHow fast producers send messages
CNumber of brokers in the cluster
DSize of messages
Describe how auto-scaling works in Kafka and what metrics are important to monitor.
Think about how Kafka adjusts resources automatically based on workload.
You got /4 concepts.
    Explain the difference between horizontal and vertical scaling in Kafka auto-scaling and why each might be used.
    Consider adding machines vs upgrading existing machines.
    You got /3 concepts.