SOA-C02 Question 164
Select 3A company uses an Amazon S3 bucket to store critical financial reports. They need to ensure that a Lambda function is triggered to process the reports whenever a new file is uploaded to the bucket. Additionally, the company wants the Lambda function to retry execution automatically if it fails. Which service configuration should the SysOps Administrator use to meet this requirement?
- A
Use Amazon EventBridge to monitor the S3 bucket and configure a rule to trigger the Lambda function upon an object creation event.
- B
Enable S3 Event Notifications to invoke the Lambda function when an object is created in the bucket.
- C
Configure a Step Functions workflow to monitor the S3 bucket and trigger the Lambda function.
- D
Set up an EventBridge rule with a retry policy to automatically retry the Lambda function upon failure.
- E
Use AWS Config to detect S3 bucket changes and trigger the Lambda function.
Show answer and explanation
Correct answers: A, B, D
Explanation
To automate the processing of uploaded files in an S3 bucket, the administrator can use both Amazon EventBridge and S3 Event Notifications to trigger a Lambda function upon object creation. EventBridge also allows configuring retry policies to reattempt execution if the Lambda function fails. AWS Config and Step Functions are not suitable for directly monitoring S3 bucket events or configuring retries for Lambda functions in this scenario.
- A. Correct.
Correct: Amazon EventBridge can monitor S3 bucket events and trigger a Lambda function when specific events, like object creation, occur.
- B. Correct.
Correct: S3 Event Notifications provide a direct way to invoke a Lambda function upon an object creation event.
- C. Incorrect.
Incorrect: Step Functions are used for orchestrating workflows but are not meant to directly monitor S3 bucket events.
- D. Correct.
Correct: EventBridge rules can include a retry policy, ensuring that the Lambda function is automatically retried upon failure.
- E. Incorrect.
Incorrect: AWS Config is used for compliance monitoring and resource configuration changes, not for triggering Lambda functions based on S3 bucket events.