A new DAG file was uploaded to an Amazon MWAA environment, but it does not appear in the Airflow UI. Where should the engineer look first?
- Exam domain
- Data Operations and Support22% of the exam
- Difficulty
- Medium
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Task Statement 3.1: Automate data processing by using AWS services.
Objective in the exam guide: Troubleshoot Amazon managed workflows.
Managed services still fail in their own ways. Knowing where MWAA reads DAGs and logs errors makes most issues quick to fix.
Why C is the answer
Check that the file is in the environment's dags folder in S3, and review the scheduler and DAG processing logs in CloudWatch for import errors
Missing DAGs usually come from a wrong upload path or an import error, both visible in S3 and the MWAA logs.
Remember: Missing DAG in MWAA: check the S3 path and the parsing logs.
How it works
Amazon MWAA loads DAG files from a dags folder in the environment's S3 bucket.
If a DAG fails to import, for example because of a syntax error or missing library, it does not appear in the UI.
MWAA can send scheduler and DAG processing logs to CloudWatch Logs, where import errors are visible.
Clues in the question
The words that point to the answer, and what each one tells you.
- Uploaded but does not appear
- Wrong location or a parsing error.
In detail
- MWAA reads DAGs from a configured S3 folder.
- Missing Python dependencies in requirements.txt are another common cause.
Side by side with look-alikes
| Check | Finds |
|---|---|
| S3 dags folder path | Wrong upload location |
| DAG processing logs | Import and syntax errors |
| requirements.txt | Missing libraries |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Increase the Redshift cluster sizeWrongMost tempting
Redshift size has nothing to do with Airflow.
Why it tempts: The DAG may load data into Redshift, so it feels connected. But Airflow has not even parsed the DAG yet.
B. Change the S3 storage classWrong
Storage class does not affect DAG loading.
C. Check that the file is in the environment's dags folder in S3, and review the scheduler and DAG processing logs in CloudWatch for import errorsRight
Missing DAG in MWAA: check the S3 path and the parsing logs.
D. Restart the company's VPNWrong
The VPN is unrelated to DAG parsing.
In practice
- Test DAG imports locally or in CI before uploading.
Use case
An illustrative scenario, not a real incident.
The logs show an import error for a missing library; adding it to requirements.txt makes the DAG appear.
See how it works
flowchart TD
A{"File in the dags folder?"} -->|"No"| U["Upload to the right path"]
A -->|"Yes"| B{"Import error in logs?"}
B -->|"Yes"| F["Fix code or add the library"]
B -->|"No"| W["Wait for the next parse cycle"]How to read this chart
- At "File in the dags folder?": if "No", go to "Upload to the right path"; if "Yes", go to "Import error in logs?".
- At "Import error in logs?": if "Yes", go to "Fix code or add the library"; if "No", go to "Wait for the next parse cycle".