Free CCDAK Exam Braindumps (page: 6)

Page 6 of 38

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

  1. Call subscribe(String topic, int partition) passing the topic and partition number as the arguments
  2. Call assign() passing a Collection of TopicPartitions as the argument
  3. Call subscribe() passing TopicPartition as the argument

Answer(s): B

Explanation:

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


Reference:

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?

  1. acks=all, replication factor=2, min.insync.replicas=1
  2. acks=1, replication factor=3, min.insync.replicas=2
  3. acks=all, replication factor=3, min.insync.replicas=2
  4. acks=all, replication factor=3, min.insync.replicas=1

Answer(s): C

Explanation:

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?

  1. In Zookeeper
  2. In an internal Kafka topictopic_configuratins
  3. In server.properties
  4. On the Kafka broker file system

Answer(s): A

Explanation:

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?

  1. 6
  2. 1
  3. 2
  4. 3

Answer(s): C

Explanation:

we have two tables, so the max number of tasks is 2



Page 6 of 38



Post your Comments and Discuss Confluent CCDAK exam with other Community members:

Testbear commented on June 13, 2023
please upload
ITALY
upvote

Testbear commented on June 13, 2023
please upload
ITALY
upvote