Bird
0
0

You want to create a Confluent Cloud Kafka topic with 3 partitions and a retention period of 7 days using the Confluent Cloud CLI. Which command is correct?

hard📝 Application Q8 of 15
Kafka - Kubernetes and Cloud Deployment
You want to create a Confluent Cloud Kafka topic with 3 partitions and a retention period of 7 days using the Confluent Cloud CLI. Which command is correct?
Accloud kafka topic create my-topic --partitions 3 --config retention.ms=604800
Bccloud kafka topic create my-topic --partitions 7 --config retention.ms=259200000
Cccloud kafka topic create my-topic --partitions 1 --config retention.ms=604800000
Dccloud kafka topic create my-topic --partitions 3 --config retention.ms=604800000
Step-by-Step Solution
Solution:
  1. Step 1: Understand retention.ms value

    Retention period in milliseconds for 7 days = 7 * 24 * 60 * 60 * 1000 = 604800000 ms.
  2. Step 2: Match partitions and retention in command

    ccloud kafka topic create my-topic --partitions 3 --config retention.ms=604800000 correctly sets 3 partitions and retention.ms=604800000.
  3. Final Answer:

    ccloud kafka topic create my-topic --partitions 3 --config retention.ms=604800000 -> Option D
  4. Quick Check:

    Partitions=3 and retention=7 days ms [OK]
Quick Trick: Retention in ms = days * 86400000 [OK]
Common Mistakes:
  • Mixing partitions and retention values
  • Using wrong retention ms
  • Setting partitions to 1 instead of 3

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes