CCDAK practice question 19 of 25
What happens when broker.rack configuration is provided in broker configuration in Kafka cluster?
Full set: 150 questionsThe broker.rack configuration property enables Kafka's rack awareness feature. When this is configured for each broker, Kafka's replica placement logic attempts to distribute the replicas for any given partition across as many different racks as possible. This strategy enhances fault tolerance by ensuring that the failure of a single rack (e.g., due to a power outage or network switch failure) will not result in the loss of all replicas for a partition. This distribution of replicas across physical failure domains is a key mechanism for achieving high availability in a Kafka cluster.
A. The broker.id must be a unique integer for every broker in the cluster, regardless of its rack assignment or any other configuration.
B. This is the opposite of the intended behavior. Placing replicas on the same rack would concentrate the risk and defeat the purpose of rack awareness.
D. Rack awareness distributes replicas of a partition across racks; it does not mandate that every rack contains a replica for every partition in the cluster.
1. Apache Kafka Documentation: In the "Broker Configs" section, the description for broker.rack states: "Rack of the broker. This will be used in rack-aware replica assignment for fault tolerance."
Source: Apache Kafka 3.7 Documentation, Section 3.2 Broker Configs, broker.rack.
2. Confluent Documentation: "Rack awareness helps spread replicas of the same partition across different racks. This spreads the risk of a rack-level failure, for example if a network switch in a rack fails, and makes the Kafka cluster more fault-tolerant."
Source: Confluent Platform Documentation, "Manage Clusters" -> "Deploy" -> "Multi-Datacenter and Rack Awareness".
3. Kafka Improvement Proposal (KIP-36): The original proposal for this feature states its goal: "The key idea is to spread replicas of a partition across different racks. As a result, if a rack fails, we only lose at most one replica."
Source: Apache Kafka Wiki, KIP-36: Rack Aware Replica Placement.
Keep practicing
Take the free CCDAK practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CCDAK practice questions
- Question 1In Avro, removing or adding a field that has a default is a __ schema evolution
- Question 2A topic has three replicas and you set min.insync.replicas to 2. If two out of three repl…
- Question 3To get acknowledgement of writes to only the leader partition, we need to use the config.…
- Question 4A customer has many consumer applications that process messages from a Kafka topic. Each …
- Question 5What information isn't stored inside of Zookeeper? (select two)
- Question 6If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?
