CCDAK Exam Question 11

StreamsBuilder builder = new StreamsBuilder();
KStream<String, String> textLines = builder.stream("word-count-input"); KTable<String, Long> wordCounts = textLines
.mapValues(textLine -> textLine.toLowerCase())
.flatMapValues(textLine -> Arrays.asList(textLine.split("\W+")))
.selectKey((key, word) -> word)
.groupByKey()
.count(Materialized.as("Counts"));
wordCounts.toStream().to("word-count-output", Produced.with(Serdes.String(), Serdes.Long())); builder.build(); What is an adequate topic configuration for the topic word-count-output?
  • CCDAK Exam Question 12

    A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a consume request is sent to broker?
  • CCDAK Exam Question 13

    Which of the following statements are true regarding the number of partitions of a topic?
  • CCDAK Exam Question 14

    What is the protocol used by Kafka clients to securely connect to the Confluent REST Proxy?
  • CCDAK Exam Question 15

    Partition leader election is done by