A Zookeeper configuration has tickTime of 2000, initLimit of 20 and syncLimit of 5. What's the timeout value for followers to connect to Zookeeper?
Answer : D
tick time is 2000 ms, and initLimit is the config taken into account when establishing a connection to Zookeeper, so the answer is 2000 * 20 = 40000 ms = 40s
You have a consumer group of 12 consumers and when a consumer gets killed by the process management system, rather abruptly, it does not trigger a graceful shutdown of your consumer. Therefore, it takes up to 10 seconds for a rebalance to happen. The business would like to have a 3 seconds rebalance time. What should you do? (select two)
Answer : B, E
session.timeout.ms must be decreased to 3 seconds to allow for a faster rebalance, and the heartbeat thread must be quicker, so we also need to decrease heartbeat.interval.ms
How much should be the heap size of a broker in a production setup on a machine with 256 GB of RAM, in PLAINTEXT mode?
Answer : A
In Kafka, a small heap size is needed, while the rest of the RAM goes automatically to the page cache (managed by the OS). The heap size goes slightly up if you need to enable SSL
What is the default port that the KSQL server listens on?
Answer : B
Default port of KSQL server is 8088
If I supply the setting compression.type=snappy to my producer, what will happen? (select two)
Answer : C
Kafka transfers data with zero copy and no transformation. Any transformation (including compression) is the responsibility of clients.
A kafka topic has a replication factor of 3 and min.insync.replicas setting of 2. How many brokers can go down before a producer with acks=1 can't produce?
Answer : D
min.insync.replicas does not impact producers when acks=1 (only when acks=all)
What are the requirements for a Kafka broker to connect to a Zookeeper ensemble? (select two)
Answer : B, D
Each broker must have a unique broker id and connect to the same zk ensemble and root zNode