Exam CCDAK Topic 1 Question 49 Discussion

Actual exam question for Confluent's CCDAK exam
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

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.

0
0
0
10