DOP-C02 Exam QuestionsBrowse all questions from this exam

DOP-C02 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?

Show Answer
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

4 comments
Sign in to comment
6ef9a08Option: A
Jul 2, 2024

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.

KaranNishadOption: C
Jun 27, 2024

CloudWatch Contributor Insights

trungtdOption: A
Jul 11, 2024

Just A

tgv
Jul 15, 2024

---> A