nerdexam
Confluent

CCDAK · Question #16

A topic receives all the orders for the products that are available on a commerce site. Two applications want to process all the messages independently - order fulfilment and monitoring. The topic…

The correct answer is C. Create two consumer groups for two applications with 4 consumers in each. two partitions groups - one for each application so that all messages are delivered to both the application. 4 consumers in each as there are 4 partitions of the topic, and you cannot have more consumers per groups than the number of partitions (otherwise they will be inactive…

Developing Kafka Consumers

Question

A topic receives all the orders for the products that are available on a commerce site. Two applications want to process all the messages independently - order fulfilment and monitoring. The topic has 4 partitions, how would you organise the consumers for optimal performance and resource usage?

Options

  • ACreate 8 consumers in the same group with 4 consumers for each application
  • BCreate two consumers groups for two applications with 8 consumers in each
  • CCreate two consumer groups for two applications with 4 consumers in each
  • DCreate four consumers in the same group, one for each partition - two for fulfilment and two for

How the community answered

(34 responses)
  • A
    12% (4)
  • B
    3% (1)
  • C
    82% (28)
  • D
    3% (1)

Explanation

two partitions groups - one for each application so that all messages are delivered to both the application. 4 consumers in each as there are 4 partitions of the topic, and you cannot have more consumers per groups than the number of partitions (otherwise they will be inactive and wasting

Topics

#consumer groups#partition assignment#independent consumers#optimal resource usage

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice