Recall & Review
beginner
What is an SLA in Apache Airflow?
SLA stands for Service Level Agreement. In Airflow, it is a time limit set on tasks to finish by a certain deadline.
Click to reveal answer
beginner
What happens when a task misses its SLA in Airflow?
Airflow records the SLA miss and can trigger notifications to alert users about the delay.
Click to reveal answer
intermediate
How do you enable SLA notifications in Airflow?
You set the 'sla_miss_callback' function in your DAG to define what happens when an SLA is missed, like sending an email.
Click to reveal answer
beginner
What is the role of 'sla' parameter in Airflow tasks?
The 'sla' parameter sets a deadline (a datetime.timedelta) for the task to complete. If the task runs longer, it triggers an SLA miss.
Click to reveal answer
intermediate
Can SLA misses trigger automatic retries in Airflow?
No, SLA misses only notify about delays. Retries are controlled separately by the 'retries' and 'retry_delay' parameters.
Click to reveal answer
What does SLA stand for in Airflow?
✗ Incorrect
SLA means Service Level Agreement, a deadline for task completion.
Which Airflow parameter sets the deadline for a task?
✗ Incorrect
The 'sla' parameter defines the time limit for task completion.
What happens when a task misses its SLA?
✗ Incorrect
Airflow records the SLA miss and can notify users.
How do you customize SLA miss notifications?
✗ Incorrect
The 'sla_miss_callback' function defines actions on SLA misses.
Do SLA misses cause task retries automatically?
✗ Incorrect
Retries depend on 'retries' and 'retry_delay', not SLA misses.
Explain how SLA misses work in Airflow and how you can notify users when they happen.
Think about deadlines on tasks and what happens if they are late.
You got /4 concepts.
Describe the difference between SLA misses and task retries in Airflow.
Consider what each feature is meant to do.
You got /4 concepts.