AWS Certified Data Engineer - Associate (DEA-C01) free question 7 / 10 · Domain 3: Data Operations and Support
An auditor asks who downloaded specific objects from a raw-data bucket. The account has a CloudTrail trail with default settings, and its logs show bucket creation and policy changes but no GetObject calls. What should the data engineer change?
- Create a second trail in the same Region, which logs management events and therefore adds the GetObject calls
- Use event history in the CloudTrail console, which keeps the object-level requests of the past 90 days
- Turn on Insights events for the trail, which records the objects that are downloaded from the bucket
- Log data events for the S3 bucket on the trail, as object-level activity is not logged by default
Show the answer and explanation
Answer: D
Why this is correct
CloudTrail logs four types of events, and by default trails log only management events. Object-level S3 API activity such as GetObject, PutObject and DeleteObject is a data event, so it appears in a trail only after you configure the trail to log data events for the bucket. The page notes that data events are often high-volume activities, which is why they are not on by default.
Why the other options are wrong
"Create a second trail in the same Region, which logs management events and therefore adds the GetObject calls" … GetObject is object-level API activity, which CloudTrail classifies as a data event. Management events cover control plane operations, and a second trail with the same selectors records the same kind of events.
"Turn on Insights events for the trail, which records the objects that are downloaded from the bucket" … Insights events capture unusual API call rate or error rate activity. They are not a record of every object-level call and are not logged by default.
"Use event history in the CloudTrail console, which keeps the object-level requests of the past 90 days" … Event history holds management events of the past 90 days. Data events such as GetObject are not part of it.
Key points
Management events are control plane operations such as AttachRolePolicy or CreateTrail. Other data event sources include the Lambda Invoke API and SNS Publish and PublishBatch.