Exam DOP-C02 All QuestionsBrowse all questions from this exam
Question 224

A DevOps engineer manages a company's Amazon Elastic Container Service (Amazon ECS) cluster. The cluster runs on several Amazon EC2 instances that are in an Auto Scaling group. The DevOps engineer must implement a solution that logs and reviews all stopped tasks for errors.

Which solution will meet these requirements?

    Correct Answer: A

    The most effective solution to log and review all stopped tasks for errors in an Amazon ECS cluster running on Amazon EC2 instances in an Auto Scaling group is to create an Amazon EventBridge rule to capture task state changes and send these events to Amazon CloudWatch Logs. Using CloudWatch Logs Insights will enable detailed analysis of stopped tasks. This approach directly addresses the requirement for capturing and investigating stopped tasks, making it the best choice among the given options.

Discussion
6ef9a08Option: A

By using Amazon EventBridge to capture ECS task state changes and sending these events to CloudWatch Logs, combined with the analytical capabilities of CloudWatch Logs Insights, option A provides a comprehensive and straightforward solution for logging and investigating stopped tasks for errors.

tgv

---> A

trungtdOption: A

Just A

KaranNishadOption: C

CloudWatch Contributor Insights