Valid CCDAK Dumps shared by ExamDiscuss.com for Helping Passing CCDAK Exam! ExamDiscuss.com now offer the newest CCDAK exam dumps, the ExamDiscuss.com CCDAK exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CCDAK dumps with Test Engine here:
A consumer wants to read messages from partitions 0 and 1 of a topic topic1. Code snippet is shown below. consumer.subscribe(Arrays.asList("topic1")); List<TopicPartition> pc = new ArrayList<>(); pc.add(new PartitionTopic("topic1", 0)); pc.add(new PartitionTopic("topic1", 1)); consumer.assign(pc);
Correct Answer: B
subscribe() and assign() cannot be called by the same consumer, subscribe() is used to leverage the consumer group mechanism, while assign() is used to manually control partition assignment and reads assignment