AWS Certified Cloud Practitioner — Question 665
A company deployed an Amazon EC2 instance last week A developer realizes that the EC2 instance is no longer running. The developer reviews a list of provisioned EC2 instances, and the EC2 instance is no longer on the list.
What can the developer do to generate a recent history of the EC2 instance?
Answer options
- A. Run Cost Explorer to identify the start time and end time of the EC2 instance
- B. Use Amazon Inspector to find out when the EC2 instance was stopped
- C. Perform a search in AWS CloudTrail to find all EC2 instance-related events
- D. Use AWS Secrets Manager to display hidden termination logs of the EC2 instance
Correct answer: C
Explanation
AWS CloudTrail records API calls, actions, and resource changes across an AWS account, allowing developers to search event history for actions like instance termination. In contrast, AWS Cost Explorer is used for financial and cost analysis, Amazon Inspector is a security vulnerability scanner, and AWS Secrets Manager is designed for storing credentials rather than system logs.