引导式测验 · 中等 等级

用于 ML 编排的 Prefect 和 Dagster 测验

比较 ML 作业的 Prefect 流程和 Dagster 资产,包括重试、沿袭、调度、部署和操作适合度。

问题 1 的 8

How does Prefect commonly define a flow?

预览每个问题8 问题

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

  1. How does Prefect commonly define a flow?
    • A Python function that cannot call another flow
    • A model evaluation metric that schedules jobs
    • A decorated Python function that composes workflow logic
    • A graph of named data assets and their dependencies
  2. How does Dagster represent an asset-oriented workflow?
    • An invocation record for a scheduled workflow
    • Named data outputs and their production dependencies
    • A task execution state with no output lineage
    • A set of training hyperparameters
  3. Why can an automatic retry be unsafe for some workflow steps?
    • Prefect automatically detects non-idempotent operations and suppresses duplicate writes
    • A task retry never calls its Python function more than once
    • Setting a retry count of one prevents the first attempt from running
    • A retry can repeat an external side effect when the operation is not idempotent
  4. What should be recorded to support ML artifact lineage?
    • Dataset identity, code revision, configuration, and artifact version
    • Only the schedule and run name
    • Only the UI layout used to launch jobs
    • 仅最终准确率分数
  5. What should teams compare in a representative orchestrator trial?
    • Only whether each workflow step is decorated
    • Only the preferred dashboard color scheme
    • Debugging, deployment, lineage, backfills, and operating requirements
    • Only validation accuracy for the trained model
  6. When might Dagster's asset model be useful?
    • When a task has no outputs to track
    • When teams need to track produced data and model outputs with dependencies
    • Only when serving models on phones
    • When the workflow should have no state
  7. What should happen to a training job that needs specialized compute?
    • The orchestrator should run all GPU training inside its own process
    • The training job should be hidden inside a schedule definition
    • The model data should be stored as a secret
    • Submit the job to suitable compute and track its outputs
  8. Which statement about Prefect and Dagster is accurate?
    • Choose based on workflow abstractions and team operating needs
    • One always runs faster for every ML workflow
    • Either tool guarantees model validity
    • Both remove the need to track data versions