InterviewStack.io LogoInterviewStack.io

Workflow Orchestration and Scheduling Questions

Orchestrating multi-step data workflows with DAG schedulers (Airflow, Dagster, and similar tools): dependency management between tasks, scheduling strategies (cron-based, sensor and trigger patterns, event-driven runs), and backfills or catch-up runs for time-partitioned data. Covers task-level retries and idempotent task design, so a scheduler can safely re-run a failed step, plus SLA tracking and alerting when a run is late or missing. The core concern is coordination: given a set of dependent tasks that must run in some order on some schedule, how do you trigger, sequence, and re-run them reliably. This is distinct from whether the data itself stays correct across a failure (exactly-once processing, deduplication, checkpointing, and dead-letter handling for corrupted or poison messages, which is a data-consistency concern) and from how a specific compute engine executes a task internally (Spark or Hadoop mechanics). The operational glue of a data platform: getting the right task to run at the right time, in the right order, with visibility into failures.

MediumTechnical
44 practiced

Explain how to implement graceful task termination and cleanup for long-running jobs in orchestrators. Cover how to signal workers, checkpoint progress, handle partial outputs, and make sure resources are reclaimed in cloud environments.

MediumTechnical
57 practiced

During an internship you were asked to refactor a fragile Airflow DAG that frequently failed or had long runtimes. Walk me through how you analyzed DAG dependencies, ensured task idempotency, modified retries, and tested the refactor before deploying to production without causing data loss.

MediumTechnical
51 practiced

Outline or implement an Airflow Sensor operator in Python that waits for S3 prefixes matching 's3://bucket/incoming/date=YYYY-MM-DD/' to appear. Requirements: poll with exponential backoff starting at 30s up to 10m, support soft_fail flag, and be compatible with Airflow 2. Describe how you'd test and scale this sensor.

HardTechnical
45 practiced

Design pseudocode for a scalable S3 'file-available' monitoring system that needs to efficiently track 100k prefixes without spawning 100k long-running sensors. Include batching, last-known-state caching, exponential backoff, and integration with S3 event notifications to minimize polling and cost. Explain consistency concerns and recovery after downtime.

HardSystem Design
48 practiced

You are migrating 300 on-premises Airflow DAGs that use custom operators and local filesystem dependencies to a managed cloud Composer/MWAA environment. Provide a migration plan covering inventory and dependency analysis, refactoring custom operators, replacing local disk usage with cloud object storage, secrets integration, CI/CD adjustments, validation, rollback strategy, and how you'd prioritize and stage the migration to reduce risk.

Unlock Full Question Bank

Get access to all Workflow Orchestration and Scheduling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.