Challenge - 5 Problems
Manual Trigger Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of manual trigger with parameters in Airflow CLI
You manually trigger an Airflow DAG named
What will be the output message shown in the terminal?
data_pipeline with parameters using the CLI command:airflow dags trigger data_pipeline --conf '{"run_date": "2024-06-01"}'What will be the output message shown in the terminal?
Attempts:
2 left
💡 Hint
Check the CLI output format when triggering DAGs with parameters.
✗ Incorrect
When you trigger a DAG manually with the --conf parameter, Airflow creates a DagRun with the given configuration and shows a confirmation message including the DAG name and run time.
🧠 Conceptual
intermediate1:30remaining
Purpose of parameters in manual DAG triggers
Why do we use parameters when manually triggering an Airflow DAG?
Attempts:
2 left
💡 Hint
Think about what changes between manual runs.
✗ Incorrect
Parameters let you pass custom data to the DAG run, so tasks can behave differently based on those inputs.
🔀 Workflow
advanced2:30remaining
Correct order to manually trigger an Airflow DAG with parameters via UI
Arrange the steps in the correct order to manually trigger an Airflow DAG named
etl_job with parameters using the Airflow web UI.Attempts:
2 left
💡 Hint
Think about the natural navigation flow in the UI.
✗ Incorrect
You first open the UI, select the DAG, then trigger it and provide parameters in the popup.
❓ Troubleshoot
advanced2:00remaining
Error when triggering DAG with invalid JSON parameters
You try to trigger a DAG manually with this CLI command:
What error will you most likely see?
airflow dags trigger my_dag --conf '{run_date: 2024-06-01}'What error will you most likely see?
Attempts:
2 left
💡 Hint
Check the JSON format rules for keys and strings.
✗ Incorrect
The JSON keys must be enclosed in double quotes. Missing quotes cause JSONDecodeError.
✅ Best Practice
expert3:00remaining
Best practice for passing sensitive parameters in manual DAG triggers
When manually triggering an Airflow DAG that requires sensitive parameters (like passwords), what is the best practice?
Attempts:
2 left
💡 Hint
Think about security and avoiding exposure of secrets.
✗ Incorrect
Storing secrets in Airflow Variables or Connections keeps them secure and avoids exposing them in logs or CLI commands.