nerdexam
Confluent

CCDAK · Question #49

How often is log compaction evaluated?

The correct answer is B. Every time a segment is closed. Log compaction is evaluated every time a segment is closed. It will be triggered if enough data is "dirty" (see dirty ratio config).

Application Design

Question

How often is log compaction evaluated?

Options

  • AEvery time a new partition is created
  • BEvery time a segment is closed
  • CEvery time a message is sent to Kafka
  • DEvery time a message is flushed to disk

How the community answered

(44 responses)
  • A
    2% (1)
  • B
    93% (41)
  • C
    5% (2)

Explanation

Log compaction is evaluated every time a segment is closed. It will be triggered if enough data is "dirty" (see dirty ratio config).

Topics

#log compaction#segment#cleanup policy#log retention

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice