Interview Guides

You're working on a scheduled data pipeline and want failed tasks to recover automatically when the issue is temporary. You also need retries to avoid creating duplicate data or hiding persistent failures.
How would you implement a retry mechanism for a failed Airflow DAG task?