intermediateKafka Partitions & Ordering139 of 469
How can you change topic retention settings?
Tests whether you know retention.ms and retention.bytes can be altered per-topic at runtime via kafka-configs.sh without restarting the broker, and that a lower retention takes effect only on the next log segment cleanup pass, not instantly.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a responseNext Step
←PreviousContinue to How do you prevent a cache stampede when using Spring's @Cacheable annotation?→
← Back to all Spring Boot & Microservices questions