Both tasks have the same task_id 'task1', which is not allowed in Airflow.
Step 2: Verify other parts
dag parameter is present, >> operator is correctly used, bash_command syntax is valid.
Final Answer:
Duplicate task_id 'task1' causes conflict -> Option C
Quick Check:
Unique task_id needed = A [OK]
Hint: Each task_id must be unique in Airflow DAGs [OK]
Common Mistakes:
Reusing task_id for different tasks
Ignoring error messages about task_id
Thinking >> operator causes error here
5. You want to run three Spark jobs in sequence using Airflow. Job 2 depends on Job 1, and Job 3 depends on Job 2. Which Airflow code snippet correctly sets this up?