AWS Cloud Practitioner · Security and Compliance · medium

A compliance officer needs an auditable record of who deleted an Amazon S3 bucket last Tuesday, including the caller's IAM identity, source IP address, and timestamp. Which AWS service provides this record?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAWS X-Ray distributed tracing service for microservice latency bottlenecks
  • BAmazon CloudFront real-time viewer cache-hit ratio statistics
  • CAWS Compute Optimizer right-sizing recommendations for EC2 instances
  • DAWS CloudTrail event history logging account API calls and identitiesCorrect answer

Answer: D. AWS CloudTrail event history logging account API calls and identities

AWS CloudTrail is the service that records API activity in an AWS account. Every call to delete an S3 bucket, whether made from the console, CLI, SDK or another service, is captured as a management event. Each event record includes the IAM identity that made the call, the source IP address, the event time and the request parameters. CloudTrail Event History keeps the previous 90 days of management events by default, so an event from last Tuesday can be looked up without any setup. For longer retention, a trail can deliver logs to S3, and CloudTrail Lake can store and query them. The common trap is confusing CloudTrail with AWS Config or Amazon CloudWatch. Config tracks resource configuration changes over time, and CloudWatch collects metrics and logs about performance. When a question asks who did what, when, and from where, the answer is CloudTrail. Distractors usually name services that sound like monitoring but serve a different purpose.

Why the other options are wrong

  • A. AWS X-Ray distributed tracing service for microservice latency bottlenecks — AWS X-Ray is a distributed tracing service that follows requests through application components to find latency and errors. It does not record who made account-level API calls such as deleting an S3 bucket.
  • B. Amazon CloudFront real-time viewer cache-hit ratio statistics — Amazon CloudFront is a content delivery network, and its statistics describe viewer requests and cache behavior for distributed content. They contain no record of IAM identities or bucket deletion API calls.
  • C. AWS Compute Optimizer right-sizing recommendations for EC2 instances — AWS Compute Optimizer analyzes resource utilization and recommends right-sized EC2 instances and other compute resources to cut cost or improve performance. It does not audit user actions or record who deleted a bucket.

All Security and Compliance questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.