Question 1 · choose 1
A data engineer uploads a new DAG file to the dags folder of an Amazon MWAA environment's S3 bucket. Other DAGs keep running, but the new DAG never appears in the Airflow UI. Where should the engineer look first to find out why?
- AThe task logs in CloudWatch Logs for the new DAG
- BThe webserver logs in CloudWatch Logs
- CThe CloudTrail event history for the S3 bucket
- DThe DAG processing logs in CloudWatch Logs
Show the answer and why
AThe task logs in CloudWatch Logs for the new DAG
Incorrect
Task logs are written when a DAG's tasks run. A DAG that was never parsed has no task runs to log.
BThe webserver logs in CloudWatch Logs
Incorrect
The webserver log group holds logs from the Airflow web interface. The UI only shows DAGs after the scheduler has processed them.
CThe CloudTrail event history for the S3 bucket
Incorrect
CloudTrail records API calls such as the upload itself. It does not show how Airflow processed the file afterwards.
DThe DAG processing logs in CloudWatch Logs
Correct
MWAA can send the logs of the DAG processor manager, the part of the scheduler that processes DAG files, to a CloudWatch log group. Errors while parsing a new file show up there.
A missing DAG is a parsing problem until proven otherwise. Turn on the DAG processing log group (it is off unless enabled) and look for the import or syntax error of the new file.
AWS documentation