A company runs applications that generate log files. The company stores the log files in Amazon S3. A CloudOps engineer must automatically process the log files whenever new files upload to the S3 bucket.
Which solution will meet this requirement?
Amazon S3 event notifications are the native mechanism for invoking processing when objects are uploaded to an S3 bucket. The CloudOps engineer can configure the bucket to send ObjectCreated events to an AWS Lambda function, and the Lambda function can process each new log file by using the bucket name and object key from the event payload. This is serverless, event-driven, and has the least operational overhead. CodePipeline is intended for software delivery workflows, not generic log-file processing. Step Functions is useful for orchestrating multi-step workflows, but polling or waiting for S3 uploads is unnecessary here. EventBridge can receive some S3 events, but the direct S3 event notification to Lambda is simpler and more targeted for this requirement.