A pipeline calls an external pricing API
A medium Pipeline Design interview practice problem on DataDriven. Write and execute real pipeline design code with instant grading.
- Domain
- Pipeline Design
- Difficulty
- medium
Problem
A pipeline calls an external pricing API. The current code is a while-True loop with bare except: it catches every exception, never sleeps, never gives up, and retries permanent errors forever. The section's smallest correct retry has three numbers (max_attempts, wait between attempts, the transient exception types it catches) and one rule (only transient errors retry; permanent errors propagate). Replace the broken enrich transform with one whose name states the retry policy. The retry assumes the underlying write is idempotent.
Practice This Problem
Solve this Pipeline Design problem with real code execution. DataDriven runs your solution and grades it automatically.