DEA-C01 Question 103
Select 3You are designing a serverless data processing workflow to process images uploaded to an Amazon S3 bucket. The workflow should automatically trigger on new object uploads, perform image analysis using Amazon Rekognition, and store the results in an Amazon DynamoDB table. Which combination of AWS services and features should you use to implement this workflow?
- A
Use Amazon S3 event notifications to trigger an AWS Lambda function.
- B
Configure the AWS Lambda function to invoke Amazon Rekognition for image analysis.
- C
Set up an Amazon S3 Lifecycle policy to process images and store results in DynamoDB.
- D
Use Amazon EventBridge to directly trigger Amazon Rekognition on S3 object uploads.
- E
Configure the AWS Lambda function to store analysis results in the Amazon DynamoDB table.
Show answer and explanation
Correct answers: A, B, E
Explanation
To design a serverless workflow, Amazon S3 event notifications can trigger an AWS Lambda function when a new image is uploaded. The Lambda function can then invoke Amazon Rekognition for image analysis and store the results in an Amazon DynamoDB table. This combination ensures the workflow is automated, scalable, and serverless.
- A. Correct.
Correct: Amazon S3 event notifications can trigger an AWS Lambda function when a new object is created in the S3 bucket, making this a key component of the workflow.
- B. Correct.
Correct: The AWS Lambda function can use the Amazon Rekognition API to perform image analysis, aligning with the requirement.
- C. Incorrect.
Incorrect: Amazon S3 Lifecycle policies are used for managing object lifecycle transitions (e.g., moving to a different storage class or deletion), not for triggering workflows or processing images.
- D. Incorrect.
Incorrect: Amazon EventBridge cannot directly invoke Amazon Rekognition. EventBridge can route and manage events, but it does not handle image analysis tasks.
- E. Correct.
Correct: The AWS Lambda function can insert the analysis results into the DynamoDB table, fulfilling the requirement to store the results.