How to log S3 bucket writes to another bucket with least effort?
Short answer
D Create a CloudTrail trail for S3 data events on the transactions bucket with write-only events and send it to the logs S3 bucket.
Question
Key Takeaways
This item tests CloudTrail data events versus a Lambda-based S3 Event Notifications pipeline, and the trap is selecting the familiar but code-heavy notification option.
Logging all writes to an Amazon S3 bucket can be handled by AWS CloudTrail data events instead of custom S3 event notification and Lambda code. The page establishes D as the least-operational-effort solution for delivering write events to another S3 bucket in the same Region.
Common mistake: The most common wrong answer is C, an S3 Event Notifications rule that invokes Lambda to write events to the logs bucket, because it requires custom code, permissions, and ongoing maintenance that CloudTrail data events avoid.
Expert Analysis
Why the Answer Is Correct
Option D uses a CloudTrail trail configured for S3 data events on the transactions bucket, with an empty prefix so all objects are covered and write-only events so only writes are logged. CloudTrail delivers those events to the specified logs S3 bucket, satisfying the same-Region destination requirement without custom code. Because CloudTrail is a managed audit logging service, enabling the trail is the least operational effort compared with building and maintaining an event-processing pipeline. The requirement is specifically for writes, and CloudTrail data events can be filtered to write-only activity.
Why the Other Options Are Wrong
Option A adds S3 Event Notifications, Lambda, and Kinesis Data Firehose, which is more moving parts and operational overhead than a CloudTrail trail, and it logs all configured activities rather than write-only events. Option B uses management events, which do not capture S3 object-level PutObject writes; management events cover control-plane actions such as bucket configuration changes. Option C also depends on a Lambda function and custom code to write to the logs bucket, so it is not the least operational effort and introduces permissions and code maintenance. Only D directly captures S3 object write data events with CloudTrail's managed delivery to an S3 destination.
Community Comment Notes
rralucard_ linked the S3 logging documentation and described D as directly logging the desired activities without developing or maintaining Lambda or Firehose resources. khchan123 likewise noted that A and C “require writing custom Lambda code to handle the events,” which is why they are not least operational effort. GiorgioGss warned that choosing C means defining Lambda code, permissions, and triggers, whereas D just enables a trail for data events. LanoraMoe clarified that S3 object-level actions such as PutObject and DeleteObject are CloudTrail data events, supporting the need for D rather than B.
Official Reference
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/logging-with-S3.html
- https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
These links open the official vendor documentation in a new tab.
Exam Strategy
When a question asks for the LEAST operational effort, avoid multi-service Lambda pipelines unless no managed option can meet the requirement. Confirm whether the needed S3 activity is object-level data events, then choose the CloudTrail trail with write-only data events and an S3 destination.
Frequently Asked Questions
Why is an S3 Event Notifications rule with Lambda not the least-effort choice?
Do CloudTrail management events capture S3 PutObject writes?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
rralucard_ 👍 5 Answered Dhttps://docs.aws.amazon.com/AmazonS3/latest/userguide/logging-with-S3.html Option D, creating a trail of data events in AWS CloudTrail, is the best solution to meet the requirement with the least operational effort. It directly logs the desired activities to another S3 bucket and does not involve the development and maintenance of additional resources like Lambda functions or Kinesis Data Firehose streams.
-
VerRi 👍 5 Answered DA: Don't need all activities on the S3 bucket B: Management events include not only the data log but also the admin log C: Don't need all activities on the S3 bucket Option D with the LEAST operational effort
-
GiorgioGss 👍 3Although it might be tempting going with C, please keep in mind that if we go with C we must define lambda code, lambda permission, triggers, etc. If we go with D we just enable a trail data events and that's pretty much it.
-
khchan123 👍 3 Answered DCorrect answer is D. Option A or C require writing custom Lambda code to handle the events and write them to the Kinesis or S3 bucket so they are not the LEAST operational effort.
-
Felix_G 👍 2Other Options were Less Efficient: A. Leverage S3 Event Notifications, Lambda function, and Kinesis Data Firehose: While this option works, it involves setting up and managing three services, increasing complexity and operational overhead. Kinesis Data Firehose introduces an unnecessary intermediary step, adding complexity for a straightforward logging task. B. Utilize CloudTrail with Management Events: CloudTrail primarily tracks API calls and management activities related to S3 buckets, not data events like writes to objects. Consequently, it wouldn't capture the desired S3 bucket writes. D. Employ CloudTrail with Data Events: Similar to option B, CloudTrail with data events doesn't track individual object writes within a bucket. It focuses on object-level changes like creation, deletion, or metadata modification.
Show 2 more comments
-
LanoraMoe 👍 1S3 object level activities such as GetObject, DeleteObject, PutObject etc are considered as Data event in cloud trail. Read and Write event be monitored separately.
-
okechi 👍 1The correct answer is B - CloudTrail of management events includes logging set ups like this
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DEA-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DEA-C01 Practice Test →