Question 26

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=all can't produce?
  • Question 27

    What data format isn't natively available with the Confluent REST Proxy?
  • Question 28

    A consumer wants to read messages from a specific partition of a topic. How can this be achieved?
  • Question 29

    A consumer has auto.offset.reset=latest, and the topic partition currently has data for offsets going from 45 to
    2311. The consumer group never committed offsets for the topic before. Where will the consumer read from?
  • Question 30

    while (true) {
    ConsumerRecords<String, String> records = consumer.poll(100);
    try {
    consumer.commitSync();
    } catch (CommitFailedException e) {
    log.error("commit failed", e)
    }
    for (ConsumerRecord<String, String> record records)
    {
    System.out.printf("topic = %s, partition = %s, offset =
    %d, customer = %s, country = %s
    ",
    record.topic(), record.partition(),
    record.offset(), record.key(), record.value());
    }
    }
    What kind of delivery guarantee this consumer offers?