🔥 3-day streak
AWS Certified DevOps Engineer - Professional138 / 204
Question 138 of 204
A company runs a critical order-processing service on Amazon ECS with Fargate. During a recent deployment, tasks began stopping repeatedly with the stopped reason 'Essential container in task exited' and exit code 1, creating a crash loop that generated hundreds of task state change events. The operations team wants an automated response that captures diagnostic details (task ARN, stopped reason, and the failing container's exit code) and posts them to an incident channel, but only when a task stops for a NON-deployment reason — routine scale-in and successful deployment stops should be ignored. Which approach BEST meets these requirements?
Reviewed for accuracy · Report an issueNext question