CCDAK Exam Question 16

What happens if you write the following code in your producer? producer.send(producerRecord).get()
  • CCDAK Exam Question 17

    Your streams application is reading from an input topic that has 5 partitions. You run 5 instances of your application, each with num.streams.threads set to 5. How many stream tasks will be created and how many will be active?
  • CCDAK Exam Question 18

    You are using JDBC source connector to copy data from 2 tables to two Kafka topics. There is one connector created with max.tasks equal to 2 deployed on a cluster of 3 workers. How many tasks are launched?
  • CCDAK Exam Question 19

    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?
  • CCDAK Exam Question 20

    Which of the following is true regarding thread safety in the Java Kafka Clients?