
Ultimate access to all questions.
A company has developed an application that utilizes AWS Lambda, Amazon S3, Amazon Simple Notification Service (Amazon SNS), and Amazon DynamoDB. The application processes data that includes personally identifiable information (PII). An external application deposits objects into the company's S3 bucket, tagging them with date and time information. A Lambda function is configured to periodically retrieve these objects from the S3 bucket based on their date and time tags, and then insert specific values into a DynamoDB table for further processing. The company needs to ensure that data older than 30 days is removed from both the S3 bucket and the DynamoDB table to comply with data retention policies. Which solution offers the most efficient operational approach to meet this requirement?
A
Update the Lambda function to add a TTL S3 flag to S3 objects. Create an S3 Lifecycle policy to expire objects older than 30 days using the TTL S3 flag.
B
Create an S3 Lifecycle policy to expire objects older than 30 days. Update the Lambda function to add the TTL attribute in the DynamoDB table. Enable TTL on the DynamoDB table to expire entries older than 30 days based on the TTL attribute.
C
Create an S3 Lifecycle policy to expire objects older than 30 days and to add all prefixes to the S3 bucket. Update the Lambda function to delete entries older than 30 days.
D
Create an S3 Lifecycle policy to expire objects older than 30 days using object tags. Update the Lambda function to delete entries older than 30 days.