
Answer-first summary for fast verification
Answer: Utilize an AWS Lambda function triggered by the s3:ObjectCreated event, write S3 keys to an SQS queue with a 24-hour timeout, and use a second Lambda to tag objects after fetching results from DynamoDB.
Option A is the correct answer. This solution uses an AWS Lambda function to trigger on the s3:ObjectCreated event, immediately writing the S3 key to an Amazon SQS queue with a 24-hour visibility timeout. A second Lambda function then pulls items from the queue, retrieves the audit results from the DynamoDB table, and tags the S3 objects accordingly. This approach ensures that the tags are updated only after the audit results are available without requiring continuous monitoring or complex workflows, making it the most operationally efficient solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer automate the process of tagging S3 objects with content audit results in an operationally efficient manner for a photo sharing application?
A
Utilize an AWS Lambda function triggered by the s3:ObjectCreated event, write S3 keys to an SQS queue with a 24-hour timeout, and use a second Lambda to tag objects after fetching results from DynamoDB.
B
Employ an AWS Lambda function for s3:ObjectCreated events, incorporate it into a Step Functions workflow with a 24-hour Wait state, and tag S3 objects with audit results post-Wait state using another Lambda.
C
Develop a Lambda function to process all untagged S3 objects, use the REST API to retrieve audit results, and tag objects accordingly, triggered by an EventBridge rule set to run periodically.
D
Deploy an EC2 instance with a script for tagging S3 objects based on external database results, scheduled to run at intervals via a crontab.