AWS Certified Security – Specialty (SCS-C02) — Question 18

A company developed an application by using AWS Lambda, Amazon S3, Amazon Simple Notification Service (Amazon SNS), and Amazon DynamoDB. An external application puts objects into the company's S3 bucket and tags the objects with date and time. A Lambda function periodically pulls data from the company's S3 bucket based on date and time tags and inserts specific values into a DynamoDB table for further processing.
The data includes personally identifiable information (PII). The company must remove data that is older than 30 days from the S3 bucket and the DynamoDB table.
Which solution will meet this requirement with the MOST operational efficiency?

Answer options

Correct answer: B

Explanation

Option B is the most efficient solution as it leverages the built-in TTL feature in both S3 and DynamoDB, automating the expiration process without requiring additional Lambda function execution. The other options either require more manual intervention or do not utilize the TTL capabilities effectively, leading to increased operational overhead.