Bird
0
0

Which of the following is the correct Kafka topic naming convention for CQRS pattern?

easy📝 Syntax Q3 of 15
Kafka - Event-Driven Architecture
Which of the following is the correct Kafka topic naming convention for CQRS pattern?
Aorders-commands and orders-queries
Bcommands.orders and queries.orders
Corders_commands and orders_queries
Dorders.commands and orders.queries
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka topic naming best practices

    Kafka topics often use hyphens to separate words for readability and consistency.
  2. Step 2: Apply to CQRS naming

    Using 'orders-commands' and 'orders-queries' clearly indicates the topic purpose and follows common Kafka naming conventions.
  3. Final Answer:

    orders-commands and orders-queries -> Option A
  4. Quick Check:

    Kafka topic naming = hyphen-separated words [OK]
Quick Trick: Use hyphens in Kafka topic names for clarity [OK]
Common Mistakes:
MISTAKES
  • Using dots which can confuse Kafka consumers
  • Using underscores which are less common
  • Reversing order of words

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes