You are working for an organization which is actively using AWS.
They have noticed that few AWS ECS clusters are running and they do not know who and when the clusters are created.
They tasked you to find out the logs regarding this.
What will you do?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: B.
Amazon ECS is integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service in Amazon ECS.
CloudTrail captures all API calls for Amazon ECS as events, including calls from the Amazon ECS console and from code calls to the Amazon ECS APIs.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/logging-using-cloudtrail.html#understanding-service-name-entriesOptions A and C are for monitoring the ECS resources, not for the API actions made on ECS.
You can monitor your Amazon ECS resources using Amazon CloudWatch, which collects and processes raw data from Amazon ECS into readable, near real-time metrics.
In this scenario, the organization wants to know who and when the ECS clusters were created. To achieve this, the best option is to check the CloudTrail logs.
CloudTrail is a service that records AWS API calls and stores the resulting logs in an S3 bucket or CloudWatch Logs. It provides a history of AWS API calls for an account, including the source IP address of the API call, the user identity, the time of the API call, and the parameters passed to the API.
Using the CloudTrail logs, we can determine who created the ECS clusters and when they were created. The CloudTrail logs capture all the API calls that were made to the ECS service, including those for creating, modifying, and deleting clusters.
The other options provided in the answers are not relevant for this scenario. CloudWatch event logs and metrics dashboard are used for monitoring and analyzing the performance of AWS services. Trusted Advisor is used to provide recommendations for optimizing AWS resources and reducing costs.
In conclusion, the correct answer for this scenario is B, Check CloudTrail logs.