A consumer wants to read messages from a specific partition of a topic. How can this be achieved?
Answer(s): B
assign() can be used for manual assignment of a partition to a consumer, in which case subscribe() must not be used. Assign() takes a collection of TopicPartition object as an argument
https://kafka.apache.org/23/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#assign-java.util.Collection-
If I want to have extremely high confidence that leaders and replicas have my data, I should use?
Answer(s): C
acks=all means the leader will wait for all in-sync replicas to acknowledge the record. Also the min in- sync replica setting specifies the minimum number of replicas that need to be in-sync for the partition to remain available for writes.
Where are the dynamic configurations for a topic stored?
Answer(s): A
Dynamic topic configurations are maintained in Zookeeper.
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?
we have two tables, so the max number of tasks is 2
If I want to send binary data through the REST proxy to topic "test_binary", it needs to be base64 encoded. A consumer connecting directly into the Kafka topic
On the producer side, after receiving base64 data, the REST Proxy will convert it into bytes and then send that bytes payload to Kafka. Therefore, consumers reading directly from Kafka will receive binary data.
Post your Comments and Discuss Confluent CCDAK exam dumps with other Community members: