Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Design Pipeline Task Retry Strategy

EasyPipelines00:00
Practice interviewer
In session
5 left
00:00

Your question is Design Pipeline Task Retry Strategy. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Context

FinPulse, a B2B payments analytics company, runs nightly ETL pipelines that ingest transaction files from S3, validate them, transform them with Spark, and load curated tables into Snowflake. The current Apache Airflow setup retries failed tasks with a fixed delay, causing duplicate loads, wasted compute, and long recovery times when failures are transient.

You need to design a retry strategy for failed pipeline tasks that improves reliability without corrupting downstream data. The solution should cover transient infrastructure failures, external API timeouts, and data-quality-related failures that should not be retried automatically.

Scale Requirements

  • Pipelines: 180 scheduled DAG runs per day
  • Tasks: ~2,500 task executions/day across ingestion, validation, transform, and load stages
  • Input volume: 4 TB/day of Parquet and CSV files in S3
  • Latency target: Critical finance datasets available by 6:00 AM UTC
  • Failure rate: 3-5% transient task failure rate during peak load
  • Recovery objective: Retryable failures should recover within 15 minutes without manual intervention
  • Retention: Task execution logs and retry metadata retained for 90 days

Requirements

  1. Design task-level retry policies for different failure classes: transient, dependency, and deterministic data errors.
  2. Prevent duplicate writes when retries occur, especially for Snowflake loads and partitioned S3 outputs.
  3. Define how retry metadata, attempt counts, and terminal failure reasons are stored and exposed.
  4. Include orchestration logic for exponential backoff, max retry limits, and escalation to dead-letter or manual review paths.
  5. Describe monitoring and alerting for retry storms, SLA risk, and repeated task failure patterns.
  6. Explain how downstream dependencies should behave when an upstream task succeeds after retry.

Constraints

  • Existing stack is AWS + Airflow + Spark + Snowflake; avoid introducing a second orchestrator.
  • Incremental cloud spend must stay under $8K/month.
  • Finance data is SOX-audited, so every retry decision must be traceable.
  • Some source systems expose rate-limited REST APIs (429s common during month-end close).