AWS Certified Developer – Associate (DVA-C02) — Question 556

A company has an application that is deployed on AWS Elastic Beanstalk. The application generates user-specific PDFs and stores the PDFs in an Amazon S3 bucket. The application then uses Amazon Simple Email Service (Amazon SES) to send the PDFs by email to subscribers.

Users no longer access the PDFs 90 days after the PDFs are generated. The S3 bucket is not versioned and contains many obsolete PDFs.

A developer must reduce the number of files in the S3 bucket by removing PDFs that are older than 90 days.

Which solution will meet this requirement with the LEAST development effort?

Answer options

Correct answer: C

Explanation

Using an S3 Lifecycle rule is a native feature of Amazon S3 that requires zero custom code or infrastructure management, making it the solution with the least development effort. Writing custom code within the application or setting up AWS Lambda functions adds unnecessary development overhead, maintenance, and execution costs.