Kafka - Monitoring and OperationsWhich configuration enables log compaction on a Kafka topic?Acleanup.policy=deleteBcleanup.policy=compactClog.compaction.enabled=trueDretention.ms=0Check Answer
Step-by-Step SolutionSolution:Step 1: Identify correct cleanup policyLog compaction is enabled by setting cleanup.policy=compact on the topic.Step 2: Eliminate incorrect optionscleanup.policy=delete is default retention, log.compaction.enabled is invalid, retention.ms controls time retention.Final Answer:cleanup.policy=compact -> Option BQuick Check:Enable compaction with cleanup.policy=compact [OK]Quick Trick: Remember: compact, not delete, enables log compaction [OK]Common Mistakes:MISTAKESUsing cleanup.policy=delete instead of compactAssuming a separate 'log.compaction.enabled' setting existsConfusing retention.ms with compaction setting
Master "Monitoring and Operations" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Kafka Connect - Kafka Connect architecture - Quiz 10hard Kafka Connect - Common connectors (JDBC, S3, Elasticsearch) - Quiz 3easy Kafka Streams - Filter and map operations - Quiz 2easy Kafka Streams - GroupBy and aggregation - Quiz 10hard Kafka with Java/Python - Why SDK integration enables applications - Quiz 15hard Monitoring and Operations - Key broker metrics - Quiz 13medium Monitoring and Operations - Prometheus and Grafana integration - Quiz 12easy Schema Registry - Schema evolution (backward, forward, full) - Quiz 3easy Schema Registry - Why schema management prevents data issues - Quiz 11easy Schema Registry - Schema evolution (backward, forward, full) - Quiz 11easy