Recall & Review
beginner
What is the purpose of the EmailOperator in Airflow?
The EmailOperator is used to send email notifications from Airflow workflows, such as alerts or status updates.
Click to reveal answer
beginner
Which parameter specifies the recipient email address in EmailOperator?
The
to parameter specifies the recipient email address or list of addresses.Click to reveal answer
beginner
How do you define the subject line of the email in EmailOperator?
Use the
subject parameter to set the email's subject line.Click to reveal answer
intermediate
What must be configured in Airflow to enable EmailOperator to send emails?
You must configure the SMTP server settings in Airflow's
airflow.cfg or environment variables to enable sending emails.Click to reveal answer
beginner
Show a simple example of EmailOperator usage in a DAG.
Example:<br>
email_task = EmailOperator(<br> task_id='send_email',<br> to='user@example.com',<br> subject='Airflow Notification',<br> html_content='Your task completed successfully.',<br> dag=dag<br>)
Click to reveal answer
Which parameter in EmailOperator sets the email content?
✗ Incorrect
The
html_content parameter defines the body of the email message.What must be configured for EmailOperator to send emails successfully?
✗ Incorrect
SMTP server settings allow Airflow to connect and send emails.
Can EmailOperator send emails to multiple recipients?
✗ Incorrect
You can pass a list of email addresses to the
to parameter.Which Airflow component runs the EmailOperator task?
✗ Incorrect
The Executor runs tasks including EmailOperator.
What is the minimum required parameter to create an EmailOperator?
✗ Incorrect
Every operator requires a
task_id to identify the task.Explain how to set up and use EmailOperator in an Airflow DAG to send a notification email.
Think about the parameters needed and Airflow configuration.
You got /5 concepts.
What are the key configuration steps to enable Airflow to send emails using EmailOperator?
Focus on SMTP and Airflow settings.
You got /4 concepts.