nerdexam
Amazon

DVA-C02 · Question #444

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

The correct answer is C. Create an S3 Lifecycle rule for the S3 bucket to expire objects after 90 days.. S3 Lifecycle rules are a native AWS feature designed exactly for this use case - they allow you to automatically expire (delete) objects after a specified number of days with zero application code changes, making option C the lowest-effort solution by far. Why the distractors are

Submitted by yuriko_h· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • AUpdate the application code. In the code, add a rule to scan all the objects in the S3 bucket every
  • BCreate an AWS Lambda function. Program the Lambda function to scan all the objects in the S3
  • CCreate an S3 Lifecycle rule for the S3 bucket to expire objects after 90 days.
  • DPartition the S3 objects with a // key prefix. Create an AWS Lambda function to remove objects

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    7% (3)
  • C
    71% (29)
  • D
    17% (7)

Explanation

S3 Lifecycle rules are a native AWS feature designed exactly for this use case - they allow you to automatically expire (delete) objects after a specified number of days with zero application code changes, making option C the lowest-effort solution by far.

Why the distractors are wrong:

  • A requires modifying and redeploying application code to add a scanning routine, which introduces development effort and ongoing compute cost.
  • B requires writing, deploying, and scheduling a Lambda function to scan and delete objects - functional, but far more effort than a built-in feature.
  • D requires restructuring your S3 key naming scheme (partitioning) and writing a Lambda function, making it the most complex option of all.

Memory tip: When an AWS exam question asks for the least development effort to manage object expiration or transitions in S3, the answer is almost always an S3 Lifecycle rule - it's a fully managed, declarative config that requires no code, no Lambda, and no scheduled jobs.

Topics

#S3 Lifecycle Rules#Object Expiration#Data Management#Storage Optimization

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice