How to resolve Cloud Composer 2 worker pod evictions and task failures?
You recently deployed several data processing jobs into your Cloud Composer 2 environment. You notice that some tasks are failing in Apache Airflow. On the monitoring dashboard, you see an increase in the total workers memory usage, and there were worker pod evictions. You need to resolve these errors. What should you do? (Choose two.)
Community Votes
44% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests whether you know that worker pod evictions are resolved by addressing per-worker memory pressure (C and D), not by broadly increasing environment size or changing DAG parsing.
Worker pod evictions in Cloud Composer 2 are usually caused by out-of-memory conditions in Airflow workers. The community consensus is to reduce worker concurrency and increase worker memory, rather than simply scaling the environment size.
Choosing B (increase environment size) is a common mistake, because scaling the whole environment may seem like a straightforward fix, but it doesn’t target the per-worker OOM issue and is not the recommended solution for worker pod evictions.
Community Discussion (12 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
C and D are correct. During evictions, a worker's memory limit is exceeded, causing the pod to be evicted and tasks to fail. Increasing worker memory (D) directly gives each task more headroom. Reducing worker concurrency (C) means each worker handles fewer tasks simultaneously, lowering peak memory per pod. As comment [1] notes, if you lower concurrency you may also increase max workers to maintain throughput; option C captures both. This is exactly the guidance in the official memory optimization documentation.
Why the Other Options Are Wrong
A (DAG parsing interval) affects scheduler CPU/parsing, not the memory of running worker pods. B (increase environment size) may add resources to the environment, but it is a broad scaling action and doesn't fix the per-worker memory limit that triggers evictions; comment [3] incorrectly suggests B as a solution but official guidance focuses on worker memory and concurrency. E (triggerer memory) is relevant only to triggerer/sensor workloads, not standard worker task execution, so it is irrelevant here.
Community Comment Notes
Several comments (e.g., [1], [5], [6]) cite the official 'optimize-environments' page and explicitly recommend increasing worker memory and reducing worker concurrency. Comment [2] also points to the same reference. A few users chose B&D ([3], [8]), but the described mechanism of evictions—per-worker OOM—points to C and D as the intended pair.
Official Reference
Exam Strategy
When a Cloud Composer question describes worker pod evictions, immediately think 'worker memory' and 'worker concurrency'—not environment size or DAG parsing. Write down that the pair of actions is C and D, and remember that reducing concurrency may require increasing max workers to maintain throughput.