Incident and Event Response
An Amazon ECS container stops with the reason 'OutOfMemoryError: Container killed due to memory usage.' What does this indicate?
Show the answer
Correct answerC. The container exceeded its available memory.
AWhy not this: A failed health check indicates an unhealthy endpoint, not specifically memory exhaustion.
BWhy not this: Image download failures occur before the container starts and produce image-pull errors.
CWhy this is right: The stopped reason explicitly identifies memory exhaustion as the cause of termination.
DWhy not this: Network interface allocation failures prevent task networking setup rather than indicate container memory exhaustion.
The stopped reason identifies a memory exhaustion failure. A load balancer health check failure can cause task replacement, but it does not establish that the container ran out of memory.