0
0
Apache Airflowdevops~5 mins

Manual triggers and parameters in Apache Airflow - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a manual trigger in Airflow?
A manual trigger is when you start a workflow (DAG) by clicking a button in the Airflow UI instead of waiting for a scheduled time.
Click to reveal answer
beginner
How can you pass parameters when manually triggering a DAG in Airflow?
You can pass parameters by entering a JSON object in the 'Trigger DAG' dialog box in the Airflow UI before starting the DAG.
Click to reveal answer
beginner
What is the purpose of parameters in a manually triggered DAG?
Parameters let you customize the behavior of the DAG run, like choosing which data to process or setting options for tasks.
Click to reveal answer
intermediate
How do you access parameters inside a DAG's Python code?
You access parameters using the 'dag_run.conf' dictionary inside your task's Python function.
Click to reveal answer
beginner
Why is it useful to use manual triggers with parameters in Airflow?
It allows you to run workflows on demand with specific settings, making your workflows flexible and interactive.
Click to reveal answer
How do you start a DAG manually in Airflow?
ARestart the Airflow server
BWait for the scheduled time
CClick the 'Trigger DAG' button in the Airflow UI
DRun a shell script outside Airflow
What format should parameters be in when manually triggering a DAG?
AYAML
BXML
CPlain text
DJSON
Where do you find the parameters inside your DAG code?
Atask_instance.xcom_pull()
Bdag_run.conf
Cos.environ
Dairflow.cfg
What happens if you trigger a DAG manually without parameters?
AThe DAG runs with default settings
BThe DAG runs twice
CAirflow throws an error
DThe DAG will not run
Why use manual triggers with parameters?
ATo customize runs on demand
BTo automate workflows only
CTo schedule DAGs in the future
DTo stop running DAGs
Explain how to manually trigger a DAG with parameters in Airflow.
Think about the steps you take in the Airflow web interface.
You got /5 concepts.
    Describe how parameters passed during manual trigger affect the DAG run.
    Consider how parameters change what the DAG does.
    You got /4 concepts.