引导式测验 · 硬 等级

Kafka 和 Flink 的流媒体功能测验

了解 Kafka 的角色、事件时间和水印、后期数据处理、Flink 检查点以及一次性保证的限制。

问题 1 的 8

Apache Kafka 在流媒体功能管道中扮演什么角色?

预览每个问题8 问题

当您参加测验时,就会出现答案和解释。

  1. Apache Kafka 在流媒体功能管道中扮演什么角色?
    • It acts as a durable event log, with record ordering guaranteed within each partition
    • It trains the machine learning model directly
    • It stores the final trained feature store snapshot
    • It replaces the need for any stream-processing engine
  2. 翻滚窗和滑动窗有何不同?
    • Sliding windows only work with Kafka, tumbling windows only work with Flink
    • Tumbling windows divide time into fixed, non-overlapping intervals; sliding windows compute a continuously updating rolling aggregation
    • Tumbling windows never expire; sliding windows expire every second
    • There is no meaningful difference between them
  3. 为什么询问过去 10 分钟内发生了多少笔交易的欺诈模型通常会使用滑动窗口而不是滚动窗口?
    • Sliding windows are always faster to compute
    • Tumbling windows cannot count transactions
    • Because it needs a continuously updating rolling count rather than a fixed periodic bucket
    • Sliding windows use less memory in every case
  4. Flink 的水印解决了什么问题?
    • Compressing event data to save storage
    • Encrypting events in transit between Kafka and Flink
    • Choosing which Kafka topic to read from
    • Estimating how far behind in event time the stream has progressed, to handle late-arriving events
  5. 在配置的允许延迟期之后到达的事件时间窗口记录会发生什么情况?
    • It is dropped from that window or routed to a configured late-data side output
    • Memory usage increases without bound
    • Kafka stops accepting new events
    • Windows never finalize their results
  6. Which resource tradeoff can result from a long allowed-lateness period for an event-time window?
    • Late events are dropped immediately
    • Window state is retained longer so late records can revise results, using more state
    • Kafka partitions are automatically rebalanced
    • The feature store stops updating entirely
  7. According to the guide, what is required for end-to-end exactly-once stream output?
    • Only a Flink checkpoint, regardless of the sink
    • A high watermark setting by itself
    • A checkpointed/replayable source and a sink that participates in compatible exactly-once or idempotent handling
    • Disabling event timestamps
  8. What does the guide identify as a common misconception about streaming features?
    • That streaming features are always less accurate than batch features
    • That Kafka cannot be used for feature engineering
    • That Flink requires a relational database to function
    • That they are simply batch, but faster, when streaming introduces distinct correctness concerns like out-of-order handling