Exam CCDAK Topic 1 Question 49 Discussion
Actual exam question for Confluent's CCDAK exam
Question #: 49
Topic #: 1
Question #: 49
Topic #: 1
A consumer wants to read messages from a specific partition of a topic. How can this be achieved?
Suggested Answer: B Vote an answer
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-
by Rodney at Jun 24, 2026, 04:13 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).