nerdexam
Confluent

CCDAK · Question #24

Select all the way for one consumer to subscribe simultaneously to the following topics - topic.history, topic.sports, topic.politics? (select two)

Sign in or unlock CCDAK to reveal the answer and full explanation for question #24. The question stem and answer options stay visible for context.

Developing Kafka Consumers

Question

Select all the way for one consumer to subscribe simultaneously to the following topics - topic.history, topic.sports, topic.politics? (select two)

Options

  • Aconsumer.subscribe(Pattern.compile("topic..*"));
  • Bconsumer.subscribe("topic.history"); consumer.subscribe("topic.sports");
  • Cconsumer.subscribePrefix("topic.");
  • Dconsumer.subscribe(Arrays.asList("topic.history", "topic.sports", "topic.politics"));

Unlock CCDAK to see the answer

You've previewed enough free CCDAK questions. Unlock CCDAK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#consumer subscribe#topic pattern#multi-topic subscription#regex subscribe
Full CCDAK Practice