🔥 3-day streak
Professional Data Engineer69 / 169
Question 69 of 169
Your team runs about 300 DAGs in a Cloud Composer 2 environment. Recently, the Airflow scheduler has become sluggish: tasks are queued but slow to start, and the DAGs list in the UI takes a long time to refresh. On investigation, you find that several DAG files execute heavy top-level code — including API calls to fetch configuration and expensive pandas transformations — every time the file is parsed. What is the most effective change to improve scheduler performance?
Reviewed for accuracy · Report an issueNext question